facebook获取长期access token
来源:互联网 发布:阿里云 阿里巴巴 编辑:程序博客网 时间:2024/04/30 06:13
Having found that it is possible to generate a Facebook Page Access Token that does not expire (with help from @Igy), here is a clear, step-by-step quide for all those looking to the same:
- Make sure you are the admin of the FB page you wish to pull info from
- Create a FB App (should be with the same user account that is the page admin)
- Head over to the Facebook Graph API Explorer
- On the top right, select the FB App you created from the "Application" drop down list
- Click "Get Access Token"
- Make sure you add the
manage_pages
permission - Convert this short-lived access token into a long-lived one by making this Graph API call:
oauth/access_token?client_id=<your FB App ID >&client_secret=<your FB App secret>&grant_type=fb_exchange_token&fb_exchange_token=<your short-lived access token>
- Grab the new long-lived access token returned back
- Make a Graph API call to see your accounts using the new long-lived access token:
https://graph.facebook.com/me/accounts?access_token=<your long-lived access token>
- Grab the
access_token
for the page you'll be pulling info from - Lint the token to see that it is set to
Expires: Never
!
That should do it. You should now have a Facebook Page Access Token that doesn't expire!
0 0
- facebook获取长期access token
- 如何获取永久性的facebook page access token
- Owin 不用/Token,获取Access Token
- weixin4j教程--获取access token
- 使用Authentication Code获取Access Token
- 获取新浪开放平台的Access token
- ACCESS TOKEN
- ACCESS TOKEN
- ACCESS TOKEN
- 为什么OAuth2里面在获取access token之前一定要先获取code,然后再用code去获取access token?
- 如何获取OAuth2.0 Access Token(新浪微博)
- 新浪微博开发No1 access token 获取
- 新浪微博Oauth2.0授权 获取Access Token
- 微信公众号开发--获取access token
- Network 【OAuth授权步骤 阶段性获取 Access Token】
- 新浪微博Oauth2.0授权 获取Access Token
- 微信开发笔记-(1)获取access token
- 百度 语音合成 语音识别 获取 Access Token
- leetcode 题解 || Valid Parentheses 问题
- ENVI裁剪
- halcon学习2--boundary算子使用
- 网格特效
- 事务
- facebook获取长期access token
- Linux 下安装配置 JDK7
- 20 迭代器模式
- laravel validator 表单验证
- Xml解析中SAX和XmlPull方式的区别
- HTML中属性name、id、class三者之间的区别
- linux 下清除缓冲区
- 21 单例模式
- 安装Oracle数据库软件