Thank you for the code
suprsidr!!
I have been using this code reliably for a couple of years now [GL 1.8.1] and in the last month or so I started getting the following error messages whenever I would open submit.php:
In the Facebook Pop-up...
Invalid Scopes: publish_stream, offline_access. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions
Followed by...
Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
I could still post the story as usual but wanted to get rid of the annoying error messages (plus who knows if this problem would cause it to stop working in the future.)
The fix was pretty simple:
On Line #39 of the code presented by
suprsidr in this topic is the following:
FB.login(function(response) {}, {scope: \'publish_stream, offline_access, manage_pages\'});
I had to change it to:
FB.login(function(response) {}, {scope: \'publish_actions, manage_pages\'});
And that seems to have taken care of it.