Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When clicking on login to Facebook to get an updated access token, Facebook spits this out:
Invalid Scopes: publish_stream. 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
I also had this issue before updating to the latest dev version, but the issue is only about a week old, before that everything worked nicely.
Comments
Comment #1
WebWalker3D CreditAttribution: WebWalker3D commentedIf you want to post on Page on behalf of the user manage_pages and publish_actions publish permissions are passable for post action.
If you want to post on behalf of the page you also need publish_pages permission, without this all v2.3 api calls will return OAuth Error. There might be other privileges for managing your pages under this permission i don't know
publish_stream has been depreciated per the developer app management interface. I tried modifying the scope on line 89 of fb_autopost.admin.inc to remove the publish_stream, but even after clearing caches etc, Facebook still complains about publish_stream. There is no other reference _anywhere_ to publish_stream in the module that I can see, so....?
Comment #2
WebWalker3D CreditAttribution: WebWalker3D commentedAlso per the API changelog at https://developers.facebook.com/docs/apps/changelog
publish_pages Permission - This new permission is required to publish as a Page. Previously publish_actions was required. People who granted manage_pages and publish_actions before v2.3 have automatically been granted publish_pages. If anyone logs in via v2.3, you'll need to request publish_pages explicitly in addition to manage_pages.
Comment #3
e0ipsoDruplicate of: #2483635: Invalid Scopes: publish_stream