I have created a facebook app. I tested it in sandbox mode
and it's fine.
Now I want to let other people test this app in mobile phone, so I close sandbox mode
and I found that iPhone-5
user can't login but it still work fine in android
phone
Here is the error log -
session creation error: Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x16561ad0
I checked my bundle id
and app id
, it doesn't go wrong
This worked for me:
Go to the settings app of your iPhone. Open your Facebook Settings Scroll down to your app and make sure your app allows facebook interaction. This could happen on any device, therefore in your app you will have to make sure to handle this error correctly. I reckon you give the user feedback why Login With Facebook failed and ask the user to check their Facebook settings on their device.