Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好我正在尝试生成一个具有离线访问权限且不会过期的 Facebook 访问令牌。
我们目前正在使用生成令牌
https://graph.facebook.com/oauth/authorize?type=user_agent&client_id=OurAppId&redirect_uri=http://OurSite.com&scope=read_stream,offline_access
生成以下内容
http://OurSite.com/#access_token=BWLjKqmm5I4dBAJUoJsbrZBMjqUTYd5oUVKdMDf0nyZBkBMnl62F5lFPqliU4cfAaI9vHjwhfgpsidjw5zrBfg4M5RftQcYHkD2rf3rCmsfd4vyxW1SPkg1bfUS3NuY2MwwhUGD159LztlpgkjSunVwf8LZA70NoefhRt1fhYPZCpSJ35gjgs6SxHwZDZD&expires_in=5500
但这很快就会过期。Graph Explorer 中的字段也不是很明显。
我们如何生成一个不会过期的离线访问令牌
干杯
Facebook 已弃用并删除了 offline_access 权限。此权限以前允许您获得长期令牌。不再可能这样做。