How to get Page Access Token by code?

不打扰是莪最后的温柔 提交于 2019-11-27 21:34:55

What you need is an Extended Page Token:

Extended Page Tokens are valid forever, so you don´t need to generate a new one all the time.

Source (including information about all the Tokens): http://www.devils-heaven.com/facebook-access-tokens/

On https://developers.facebook.com/docs/pages/access-tokens

Getting Page Access Tokens

GET /{page-id}?fields=access_token&access_token={user_access_token}

The response will look like this:

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