Facebook Graph API v3.1 Access Token Permission Limitations For Developers

橙三吉。 提交于 2019-12-03 16:45:50

I tried many things and then I found it on Facebook Developers Guide that after new Update, No one can get all of the below showed permission if the Apps goes Live. To get all these permission after making your Apps live, you have to Apply for permissions to review or else you can get all permission freely in Development Mode But it will work for you only.

As you know that to get all permissions in your Apps for your own use, you can get it without Reviewing your apps or anything. You can see a General Setting of an Apps below.

You just have to turn your apps in development mode by turning the live mode off as shown in the below and upper screenshots.

After doing this, just go to Graph API Explorer and click "Get Token" button then select "Get User Access Token" and here you will get the pop up as shown in the first screenshot of this Answer where you can select your desired scopes and click "Get Access Token". It will raise a POPUP where it will need your permission to allow and then it will return you the Access Token. (You Can Extend Your Access Token To 60 Days)

Note: This token will post on your Page will be visible to you only because your Apps is not live so every activity done by your apps is for you only.

It's seems to me that you are using a user access token. To get a page access token you should call the endpoint:

https://graph.facebook.com/v3.1/{user-id or me}/accounts

to get the list of pages and the access tokens for each of them.

Or:

https://graph.facebook.com/v3.1/{page-id}?fields=access_token

if you already know the page where you want to post.

When you obtain a page access token you can call the feed endpoint.

Take a look here: https://developers.facebook.com/docs/pages/access-tokens

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!