Authentication Fails with Facebook App Installed (iOS)

前端 未结 4 1784
野性不改
野性不改 2021-01-04 06:57

I\'ve just started seeing a problem with Facebook Connect authentication. If I have version 3.4.4 of the iOS app installed, my delegate\'s fbDidNotLogin method gets called

相关标签:
4条回答
  • 2021-01-04 07:01

    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.

    0 讨论(0)
  • 2021-01-04 07:10

    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.

    0 讨论(0)
  • 2021-01-04 07:12

    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. :-$

    0 讨论(0)
  • 2021-01-04 07:23

    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

    0 讨论(0)
提交回复
热议问题