离线访问弃用 - 有什么替代方案

发布于 2024-12-29 21:27:21 字数 362 浏览 2 评论 0原文

根据开发者路线图 - 离线访问已被弃用。那么替代方案是什么? 我知道我们可以获得 60 天后过期的扩展令牌,但是离线访问怎么样?该文档不清楚当用户未登录时此令牌是否有效。

请参阅 FB.logout 它说调用 FB.logout 将使任何现有令牌无效,除非您具有离线访问权限,这对新的扩展令牌有何影响?如果它也使扩展令牌无效,是否有其他选择。

即使用户未登录,旧的offline_access权限也可以让应用程序调用图形API,扩展令牌是否以相同的方式工作?如果不是,还有什么选择?

As per the developer road map - offline access is being deprecated. So whats the alternative ?
I know we can get extended token that will expire in 60 days, but how about the offline access ? The documentation isnt clear about weather this token works on or not when user is not logged in.

See FB.logout It says calling FB.logout will invalidate any existing token unless you have offline_access permission, How does this affect to new extended token ? If it invalidates the extended token as well, is there any alternative.

The old offline_access permission would let the app make calls to graph API even when user isn't logged in, does the extended token work in same way ? if not what's the alternative ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

血之狂魔 2025-01-05 21:27:21

将无法代表用户获取请求。

There will be no way to get requests on behalf of users.

慕烟庭风 2025-01-05 21:27:21

您的应用程序也容易受到用户注销的影响。我们仍然处于临时离线访问状态,但一旦用户在 Facebook 上注销浏览器会话,当时生成的凭据就不再有效。对于异步应用程序来说,这是一个巨大的遗憾。

You're app will also be vulnerable to the user logging out. We are still in under the temporary offline_access but as soon as the user logs out of their browser session on facebook the credential generated at the time is no longer valid. It's a huge bummer for async apps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文