0

I'm including the official Facebook Page Plugin (not my own app) on my website. The plugin shows as a widget with a "share" button at the top. On Chrome, Firefox, iOS 8.4 Safari, clicking that goes to a share page. But on iOS 9.2 Safari (on an iPhone 6), clicking that share button shows a page with the error:

App not setup. This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.

To eliminate any other code, I made a flat HTML page that has nothing but the Facebook code and it still does this.

What could cause this?

Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
  • @JonKoops It is not a duplicate. This is not my app. This is the official Facebook Page Plugin. – Don Rhummy Jan 06 '16 at 21:34
  • 1
    You will still need to register your application (Facebook page). The app id was added when you pressed the 'Get code' button. – Jon Koops Jan 06 '16 at 21:41
  • @JonKoops How do I do that? I don't see anywhere on the page that allows that. – Don Rhummy Jan 06 '16 at 21:42
  • Something in the script, should look like this: `js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=*12345678*` – Jon Koops Jan 06 '16 at 21:42
  • @JonKoops This indicates you don't need a facebook dev account or anything to use on the web: https://developers.facebook.com/docs/plugins/faqs/#developer-account – Don Rhummy Jan 06 '16 at 21:43
  • Strange. Are you sure it isn't trying to open the Facebook app instead? – Jon Koops Jan 06 '16 at 21:44
  • @JonKoops Where do I get that app id from? How do I create it? And the script Facebook gives does not have an app_id – Don Rhummy Jan 06 '16 at 21:44
  • @JonKoops It might be, but on iPhone 6/iOS9 it opens the page in a web browser. – Don Rhummy Jan 06 '16 at 21:44
  • @JonKoops The FAQ says this: "Web: If you are using Social Plugins on the web, you do not need to create a Facebook app for integrating a Social Plugin." – Don Rhummy Jan 06 '16 at 21:45
  • I see, I am being confronted with it because I am logged in. – Jon Koops Jan 06 '16 at 21:45
  • Well, I dunno. But I'll remove the duplicate. – Jon Koops Jan 06 '16 at 21:46
  • @JonKoops Thank you for helping me discover the answer. Their documentation is wrong. I'm guessing it's because iOS 9 tries to open it in an app which then moves into "iOS App" territory instead of the web. This is only in iOS 9 Safari. – Don Rhummy Jan 06 '16 at 22:13

1 Answers1

0

For some reason only on iOS 9 Safari (not on iOS 8, or in Android or Desktop browsers) Facebook's Page Plugin will not work without a public app id. On all other browsers/platforms, you can copy the code directly from their Social Plugins site (via "Get Code" button) and it will work.

But in iOS 9 Safari, Facebook's share button in the iframe works only if you create an App, click yes to "Do you want to make this app and all its live features available to the general public?" under app settings and then pass that App Id to the JavaScript source call.

This might happen because in iOS 9 because it attempts to open in the Facebook app instead of the browser. This crosses over into the "app environment" and thus changes Facebook's requirements despite them kicking you back to safari with an error.

Don Rhummy
  • 24,730
  • 42
  • 175
  • 330