Facebook Single Sign On for iOS - working for anyone else?

Hi all,

I have Facebook-SSO working fine on Android, and even in the Xcode simulator. On the device however it does not work at all.

The app attempts to log into facebook, the fb popup hangs for a few seconds and then goes away as it would if you’ve signed in - but it has not signed in. Obviously it means you cannot post to walls/photos etc.

Has anyone else got it working on iOS?

I have added my app ID to the build.settings file, and on the fb developer site, I have put in my iOS bundle id, set Configured for iOS SSO to yes, however I do not yet have an iPhone app store ID. The tutorial ( http://blog.anscamobile.com/2012/01/implementing-facebook-single-sign-on/ ) says that you can use any app ID from the app store in the meantime, I wonder if this is incorrect? I’ve tried a few, and made sure they were iPhone compatible (I’m testing on a 3GS) but still no luck.

Does anyone know what the solution could be?

Thanks [import]uid: 84115 topic_id: 20962 reply_id: 320962[/import]

EDIT: Testing one last thing before inserting foot in mouth. [import]uid: 37122 topic_id: 20962 reply_id: 82875[/import]

I have it working on an unreleased iOS app, the feature does work. [import]uid: 110373 topic_id: 20962 reply_id: 82876[/import]

Hey guys, I’m wondering what might be the “iPhone app store ID” that Facebook wants. Is it the Apple ID that we get when we add a new app in iTunes Connect?

@brad, are you able to select Native iOS App on Facebook dev page as your intended integration with an unreleased iOS app? My Facebook dev page will not let me select it, saying “Your iPhone App Store ID is invalid because the iTunes App Store reports your app as being unavailable for iPhone and iPod touch.” I don’t understand why I can’t select it while you can…

Naomi [import]uid: 67217 topic_id: 20962 reply_id: 82881[/import]

@Naomi
That’s where you went wrong I think, you have to pick a Valid and CURRENTLY released app while testing even if it’s not your app.
just put the id in for ANY app in the app store there. Just change it to your number before you make your final build for the iTunes connect upload.

It’s listed in the docs, but I made that mistake my first try as well.
[import]uid: 110373 topic_id: 20962 reply_id: 82882[/import]

@brad, thank you for your note, but I have no idea how to get a hold of a valid & currently released app’s app store ID, assuming we’re talking about the Apple ID of a currently released app.

Ah… a lightening just struck. I think I can get a hold of a valid Apple ID and Bundle ID of an already released app! Let me try it and will report back (after I get a good night sleep, that is.)

Thanks again!

Naomi [import]uid: 67217 topic_id: 20962 reply_id: 82883[/import]

Hey
If you can’t I just think Jonathan Beebe wrote about one in the blog post here at Ansca in the post about SSO sign in with Facebook. I have it working great just by adding a new app in the developer portal at Apple and copying the bundle id and the app id into Facebook and it works in the XCODE Simulator and on my iOS devices even if the app isn’t released. [import]uid: 22737 topic_id: 20962 reply_id: 82910[/import]

Just to confirm Brad, do the Bundle ID and AppID have to be for the same app when testing. Or can I use my own bundle ID and grab any App ID from the app store?

I have tried 3 app ID’s already and it still didn’t work. They were all for active apps, and all valid for iPhone, iPad and iPod Touch.

Actually, am I right in thinking that I could get the appID like so?

http://itunes.apple.com/gb/app/current_app_name/id 1234567890?mt=8&v0=WWW-EUUK-ITUHOME-TOPAPPLICATIONS&ign-mpt=uo%3D2

I’ve assumed that the part in bold is the appID? [import]uid: 84115 topic_id: 20962 reply_id: 82911[/import]

Hi @akviby and @alan120184, I was able to use valid Apple ID and Bundle ID and test my code. Here’s what I learned through the process, if you are interested:

http://developer.anscamobile.com/forum/2012/01/27/help-facebook-api-how-integrate-test-unpublished-app#comment-82960

@alan120184, the part in bold indeed matches with the Apple ID in iTunes Connect.

Naomi [import]uid: 67217 topic_id: 20962 reply_id: 82961[/import]