Search code examples
iosfacebook

Authentication Fails with Facebook App Installed (iOS)


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 with an error message of "The user denied your request". When I uninstall the FB app, the authentication works fine. Is anyone else seeing this? Does anyone know how I can route around this bug?

Here's my call to the Facebook object:

[[app facebook] authorize:[NSArray arrayWithObjects:
                           @"publish_stream", @"offline_access", nil]
                           delegate:app];

Solution

  • 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.