Graph API manage_pages and publish_pages permissio

2019-07-15 05:40发布

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?

2条回答
Melony?
2楼-- · 2019-07-15 05:49

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.

查看更多
够拽才男人
3楼-- · 2019-07-15 05:57

Sadly manage_pages and publish_pages permissions are deprecated. From their documentation -

As of April 24,2018, the pubish_actions permission has been removed. Please see the Breaking Changes Changelog for more details. To provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.

You can check out this link that mentions the above details.

查看更多
登录 后发表回答