Search code examples
facebook-graph-apifacebook-access-token

Graph API manage_pages and publish_pages permissions disappearing from an access token's scope


I am using the Graph API to automatically post to a Page. To get a Page Access Token, I have first logged in to my app using the Graph API Explorer's login with the permissions manage_pages, publish_pages and pages_show_list. I then used the access token tool to extend it, then used that to call me/accounts in the Explorer to obtain a Page Access token with no expiry time.

When I first logged in to my app, it was in development mode. I looked at the access token in the Access Token Debugger and saw it had the manage_pages and publish_pages permissions. However, when I make the app public, these permissions disappear from the scope of the access token, even though the user it refers to is an Admin of the app. When I try to make an API call in public mode, I get the following error:

(#200) This endpoint is deprecated since the required permissions manage_pages,publish_pages are deprecated

This really confuses me, as I believe those permissions have not been deprecated.

Does anyone know why the perms are disappearing/becoming "deprecated" when I switch the app to public mode?


Solution

  • I had a similar problem.

    After contacting Facebook, it turns out this is an app verification issue, and the publish_pages permission is available for private test apps, and properly approved public apps.