iOS Facebook connect not working when user has FB's app installed?

user965985 picture user965985 · Sep 27, 2011 · Viewed 8.7k times · Source

Has anyone else had this problem? I'm getting this error when trying to authorize a user via FB, I think I've isolated it only when a user has installed the Facebook app:

fb_our_appID://authorize#error=unknown%5Ferror

If you delete the FB app from the user's phone, our app will then try to authenticate via Safari, and everything works fine.

Thanks so much.

Answer

Dave picture Dave · Sep 30, 2011

Yup, we were getting this as well.

It occurs when your bundle identifier does not match the one configured as part of your facebook application. Copy your bundle-id from your plist, and update the iOS Bundle ID value on facebook

https://developers.facebook.com/apps/_YOUR_APP_ID_/summary

PS: Check out facebook.stackoverflow.com for good facebook help.