Facebook Page Access Token can be used to post stuff?

混江龙づ霸主 提交于 2019-12-11 19:48:29

问题


I have read some introduction about Facebook's access token on http://www.devils-heaven.com/facebook-access-tokens/

What I want to ask is that can the page access token of Facebook be used as a permanent token if I just want to post something on the wall like user access token?


回答1:


First of all don't ever follow the third-party documentation for the facebook integration. They have the official documentation pls follow that. For access tokens read here.

What I want to ask is that can the page access token of Facebook be used as a permanent token if I just want to post something on the wall like user access token?

Its actually a vague question. It depends on what kind of posting you want to do. For eg:

  1. If you want to post on a user's wall- there's nothing that a page access token can do

  2. If you want to post a user's group/event etc. wall, again page access token has nothing to do with it.

  3. If you want to post on a page, then yes you have to use the page access token in order to post on behalf of page itself.

Page access tokens are used in Graph API calls to manage Facebook Pages. To generate a page access token, an admin of the page must grant an extended permission called manage_pages. Once this permission has been granted, you can retrieve the page access token using the following Graph API request:

GET /{user-id}/accounts

You can also extend a page access token that will never expire. See here how to do that!



来源:https://stackoverflow.com/questions/23051320/facebook-page-access-token-can-be-used-to-post-stuff

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