Facebook页面:权限更新

问题描述:

当我尝试使用FB.api更新/创建/删除或执行任何我的Page属性时,我有一个未知权限异常。我通过使用Graph API Explore再次尝试,但它仍然给我同样的错误。我用谷歌2天,但没有任何正确的答案。Facebook页面:权限更新

下面的截图是在Adminster页面的帐户我的应用程序设置:

http://demos.kksolution.com/Facebook/screenshot/post-update-about-page.jpg

这里是图形API Expore截图:

demos.kksolution.com/Facebook/screenshot/list- pages.jpg

接下来是错误:

demos.kksolution.com/Facebook/screenshot/post-update -about-page.jpg

请帮帮我。非常感谢。

+0

你问了什么权限? –

您需要一个页面访问令牌。

Page Access Token – These access tokens are similar to user access tokens, except that they provide permission to APIs that read, write or modify the data belonging to a Facebook Page. To obtain a page access token you need to start by obtaining a user access token and asking for the manage_pages permission. Once you have the user access token you then get the page access token via the Graph API.

Doc: https://developers.facebook.com/docs/facebook-login/access-tokens/

然后使用GET /me/accounts获取与您的页面关联的访问令牌。

+0

Stéphane是正确的,我试着你通过页面访问令牌问及它的工作:)投票 –

+0

谢谢,你是对的,我使用错误的标记(我认为我们只有一个会话的标记)。 –