问题
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.
回答1:
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.
回答2:
I got the same issue. I Removed the facebook app from the phone and it started to work again. I then installed the facebook app and my app kept working. So looks like it only works fine if the app is installed before the facebook app and leads me to think it is a facebook app problem.
回答3:
It was the bundle ID blocking it, but we ended up forcing the FB dialog in the app.
iOS: Connect to Facebook without leaving the app for authorization
回答4:
I didn't tried with Safari, but I had the same error message from facebook app.
My problem was from my application bundle, which must be exactly the same as in your facebook app configuration (first field of facebook iOS app configuration).
回答5:
Make sure your application bundle id is set correctly on your app's Facebook page.
check out this answer
Authentication Fails with Facebook App Installed (iOS)
for reference.
来源:https://stackoverflow.com/questions/7572107/ios-facebook-connect-not-working-when-user-has-fbs-app-installed