LudoZik
LudoZik

Reputation: 917

Facebook SDK - iOS - Fail to share URL (Error 102)

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 :

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

Answers (8)

Sayali Shinde
Sayali Shinde

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

Kenneth Chu
Kenneth Chu

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

Thomas Desert
Thomas Desert

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

user3364192
user3364192

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

Rooney
Rooney

Reputation: 1205

I agree with @user3170877. it can't be used like Japan letter and Korean. i recommend only english to use.

Upvotes: 1

Mihir Mehta
Mihir Mehta

Reputation: 13833

Check Following if error 102 comes

  1. FacebookDisplayName is set properly and correct in plist URL Scheme
  2. fbxxxxxxxxxxx is added in the plist
  3. FacebookAppID is set correctly in plist file
  4. in Status & Review section Make sure you have "Do you want to make this app and all its live features available to the general public?" make as YES (By default it is set as No)

Upvotes: 13

user3170877
user3170877

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

Ming Li
Ming Li

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

Related Questions