Alternate way to use Facebook and Twitter in app?

Hey Naomi thanx a lot :slight_smile:

Yes am trying to print some messages in between so as to keep track how much my program is working, i am able to log in and also post a msg , I am using Bundle ID of already submitted app on itunes which is approved , so thats working the only problem is Image posting , as you told me my version is old so i will update that to 767 and then try it :slight_smile:

Thanx a lot it really helped .

Vedangi :slight_smile: [import]uid: 95790 topic_id: 19775 reply_id: 95063[/import]

Hey, Vedangi, glad to hear you were able to identify the issue.

Cheers,
Naomi [import]uid: 67217 topic_id: 19775 reply_id: 95078[/import]

Hi guys.

I too trying to implement social in my app. I used the above method and the Twitter works great. The Facebook is giving some problems. I get the same error as described above:

“An error occurred with “Name of my app”. Please try again later.”

It seems to be related to the redirect URL settings. I am not really sure what I need to use for that. Actually not sure what to use for fblink and fbpic either? Are this links related to my app or do they need to be specific to Facebook dev page? I have Facebook app I’d for my app but I do not have my app on iTunes set yet. The error message says something that the redirect link do not belong to the app or something like that. I read somewhere that I did not need to have an app on iTunes to use facebook. Just simply use an app iTunes ID from the showcase at Ansca mobile. Would that could be my problem? I kind like the easy way that this post shows but up I need to fix this issue with Facebook before I can release my app!

Thanks guys!

Mo [import]uid: 100814 topic_id: 19775 reply_id: 110226[/import]

In the FaceBook developer for my app I have -

Website with Facebook Login
Native iOS App

Both filled in, in the website with FB login section, I have the page I redirect to in the “Site URL” box.

Then i my code -

 local redirectUri = "http://www.caniplay.co.uk/charactercreations/sharing-thanks.html" --where it goes after post  
 local fbLink = "http://goo.gl/ujQYY" --displayed link will go there if clicked  
 local fbPic = "http://caniplay.co.uk/charactercreations/images/title.png" --image see guidelines on aspect ratio  
 local app\_id = "APP ID"  
 local fbName = "Character%20Creations" --appears in Bold any but needs URL encoding no spaces  
 native.showWebPopup(20, 20, display.contentWidth - 40, display.contentHeight - 90, "http://www.facebook.com/dialog/feed?display=touch&app\_id="..app\_id.."&redirect\_uri="..redirectUri.."&link="..fbLink.."&picture="..fbPic.."&name="..fbName.."&description="..theString)  

So it shares the link in fblink, attaches the fbPic and after the post redirects to redirectUri (which I just realised the var is spelt wrong!).

EDIT: theString variable is setup elsewhere and that is what you want the text by the link to say, something like “I have just been playing APP NAME and think it’s great!”.

The reason I have both filled in the developer page is because I also have a option on my app to post images to the users wall.

Dave [import]uid: 117617 topic_id: 19775 reply_id: 110245[/import]

In my experience, you have to create an app ID on Facebook, but, it doesn’t have to be an iOS app. What I did was create a Website type app, and then fill in the same links I used in my API call in the appropriate places. Then, once my app had been released, I put my real iTunes app ID in on FB. [import]uid: 38000 topic_id: 19775 reply_id: 110273[/import]

Thanks so much guys. I got it working! It look like i was missing the website with Facebook. I had only the native app set. I have noticed that on a 3G iphone 4 the link to facebook do not always work every time but always work when in wifi. I guess that expected. I guess SSO for Facebook will be better but it seems that you only need to login once when using this easier method. So I think I can leave with that for now.

THANKS!

Mo [import]uid: 100814 topic_id: 19775 reply_id: 110347[/import]