【发布时间】:2012-03-07 18:43:36
【问题描述】:
我必须扩展存储在我的数据库中的所有用户的离线访问令牌
在这里我找到了方法 https://developers.facebook.com/docs/offline-access-deprecation/
但是当我使用这个调用时
https://graph.facebook.com/oauth/access_token?
client_id=APP_ID&
client_secret=APP_SECRET&
grant_type=fb_exchange_token&
fb_exchange_token=EXISTING_ACCESS_TOKEN
对于某些用户,我获得了新令牌
access_token=xxxxxxx&expires=5102358
对于其他人我没有收到任何东西,为什么?
我用这个代码
$request_url = "https://graph.facebook.com/oauth/access_token?client_id=xxxx&client_secret=xxxx&grant_type=fb_exchange_token&fb_exchange_token=xxxx";
$info = file_get_contents($request_url);
提前感谢您的帮助。
【问题讨论】:
标签: facebook access-token