Authentication Fails with Facebook App Installed (iOS)

喜夏-厌秋 提交于 2019-11-30 17:39:10

Make sure your application bundle id is set correctly on your app's Facebook page.

I think they just started to enforce this, which is why it just recently broke.

You should be able to change this by going into your apps settings on Facebook, and clicking 'Edit Settings' from the screen where you get your App Id. The 'Mobile Native' section will allow you to change your iOS Bundle ID to match the Bundle Identifier you have in Info.plist.

Hope this helps someone! Know that you can get this working with the latest Facebook app, and it is probably a configuration issue like the one described above.

I can confirm I'm experiencing the same issue here. I backtraced a bit, and I see the facebook app is opening my app with this query string in the url:

error_reason=user%5Fdenied&error=access%5Fdenied&error_description=The%2Buser%2Bdenied%2Byour%2Brequest%2E%3F%5F

I guess unfortunately there's nothing we can do but wait :S

It's pretty obvious, but if your application is sandboxed then you need to ensure that everyone signing in with it is a 'Tester' or higher in the Facebook app settings. :-$

Steve Liddle

As pointed out in this thread, you can force FBConnect to use Safari dialogs instead of fast-app switching to the installed FB app. Just comment out the block of code in Facebook.m that calls out to the FB app.

This is one way to route around the FB bug until they fix their app. It's not an ideal solution, but it works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!