Reputation: 917
I am trying to integrate a simple URL Share on my App, following the dedicated Facebook tutorial (link)
On my app, I simply click on a button, which displays a dialog where I can type in a comment. This part works find. Yet, when I click on "Post", I get the following error :
Error Domain=com.facebook.Facebook.platform Code=102 "The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)" UserInfo=0x14dd1a10 {error_message=Failed to authenticate the application because of app name mismatch. Please check the application name configured by the dialog., app_id=000000, error_code=102}
(In this message, I just replaced with zeroes the app_id I got from the Facebook developer page.)
On the Facebook app settings, I set the following as such :
[[NSBundle mainBundle] bundleIdentifier];
When I save my settings on the FB dev page, I get a warning saying that I did not set an AppStore identifier (which is not yet available since I am developing the app).
Can you please tell me the little thing that I did not do correctly ?
Thanks in advance for your reply.
I'll be happy to provide you with more info if necessary.
Upvotes: 21
Views: 13353
Reputation: 311
Login to Facebook Developer account and check Status is live or in Development. If it is in Development then change it to live. This worked for me.
Upvotes: 1
Reputation: 1385
If your Facebook app status is "development and unavailable to the public" will caused same result.
You may want to change it to public under "App Review" on the Facebook app menu. Or you need to login Facebook as role "Administrators", "Developers" or "Testers"
Upvotes: 0
Reputation: 1346
If none of the other answers fixed this problem for you, one last thing to check is the Bundle ID in your Facebook App settings.
I had this problem for my iOS app that was using a different bundle identifier depending on the build configuration I used.
You can specify several Bundle IDs in your Facebook App settings.
Upvotes: 0
Reputation: 3933
For me none of this solutions worked. It turned out I just had to delete facebookDisplayName record from info.plist. Stranged but it worked
Upvotes: 5
Reputation: 1205
I agree with @user3170877. it can't be used like Japan letter and Korean. i recommend only english to use.
Upvotes: 1
Reputation: 13833
Check Following if error 102 comes
Upvotes: 13
Reputation: 11
There is also a problem with diacritic signs, you can not use it in FacebookDisplayName... for example č, ž, š etc. If you write all without diacritics, it works fine.
Upvotes: 1
Reputation: 15662
This usually comes from you setting the FacebookDisplayName in your .plist, but what you set there didn't match the name of your app in your app settings on Facebook.
The value you give in FacebookDisplayName must match what you have set on Facebook.
Upvotes: 51