Facebook iOS SDK “issues” silent fail upon return from SSO

This is for my own recordkeeping, but perhaps you might have had a similar issue.

For some reason, we have 2 apps running the same code.  We wanted a clear separation between what’s our production version and what’s our development version.  So we have bundle identifiers that are

com.mycompanyname.ourapp  and

com.mycompanyname.ourapp.development

One thing to remember when doing this is that in the .plist of these 2 apps you need to ensure that they don’t share the same URL Schemes for facebook i.e. fbMYFACEBOOKAPPID, otherwise iOS will get confused because 2 apps can respond to those URL schemes.  So, either ensure that both info.plist files have unique schemes, or you can use the API in the FB iOS SDK to define URL Schemes with suffixes.  

More info here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s