Facebook 60天访问令牌和Deprecated Offline_Access [英] Facebook 60 day access token and Deprecated Offline_Access

查看:141
本文介绍了Facebook 60天访问令牌和Deprecated Offline_Access的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook的已弃用的脱机访问文档( http://developers.facebook.com / docs / offline-access-deprecation / )指出以下内容:

Facebook's "Deprecated Offline Access" doc (http://developers.facebook.com/docs/offline-access-deprecation/) states the following:

*服务器端OAuth开发人员

*Server-side OAuth Developers

如果access_token是从服务器端 OAuth调用生成的,则生成的access_token将具有较长的到期时间。如果在该用户仍然存在有效的access_token的情况下进行呼叫,则从该第二个呼叫返回的access_token可能相同或可能已更改,但在任一情况下,到期时间将被重置。再次,在同一天内多次呼叫将导致只有第一个通话延长到期时间。*

If the access_token is generated from a server-side OAuth call, the resulting access_token will have the longer expiration time. If the call is made while there is still a valid access_token for that user, the returned access_token from this second call may be the same or may have changed, but in either case the expiration time will have been reset. Again, calling this multiple times during the same day will result only in the first call extending the expiration time.*

似乎意味着服务器端OAuth 自动获取一个长期的到期令牌。如果我在Facebook开发人员高级对话框中启用不赞成离线访问设置,我确实发现这一点 - 令牌在60天内到期。但是,在2小时内关闭令牌的过期时间将会过期。

This would seem to imply that Server-side OAuth automatically gets a long expiration token. I do find this to be the case if I enable the "deprecate offline access" setting in the Facebook Developer advanced dialog - The token expires in 60 days. But with the setting off the token expires in 2 hours.

我对此设置的一点感到困惑:

I'm a little confused about the point of this setting:

问题:


  • 设置听起来像一个转移/迁移选项....如果我
    启用此选项,我还能从现在起6个月内获得60天的令牌吗?
    不使用交换端点?

  • The setting sounds like a "transitionary/migratory" option.... If I enable this option will I still get 60 day tokens 6 months from now? without using the "exchange" endpoint?

为什么不自动将所有令牌设置为60天?

Why not just automatically set all tokens to 60 days?

推荐答案

Facebook应用程序的迁移设置点是使开发人员能够测试新功能(或旧的功能的弃用) )提前在他们的应用程序和发现可能出现的错误。如开发人员路线图所示,offline_access权限将在5月1日和之后删除,每个应用程序将起作用,如您启用了测试的迁移设置。

The point of migration settings for Facebook apps is to enable developers to test new features (or deprecation of old features) ahead of time in their apps and spot bugs that may arise. AS indicated on the Developer Roadmap, offline_access permission will be removed on May 1st and at that point, every app will act as if the migration setting you are testing is enabled.

您可以在这里找到有关此更改的更多信息:
https://developers.facebook.com/docs/offline-access-deprecation/

You can find more information about this change here: https://developers.facebook.com/docs/offline-access-deprecation/

我们的原因不要自动启用,恕不另行通知是因为它会导致很多应用程序中断。 Facebook有一个违反变更政策,试图避免在没有

The reason we do not automatically enable this without notice is because it would cause a lot of apps to break. Facebook have a breaking change policy which tries to avoid making those sorts of changes without a 90 day warning (and in this case, a migration setting).

编辑:离线访问权限删除被推回到10月3日。

offline access permission removal was pushed back to Oct 3rd.

这篇关于Facebook 60天访问令牌和Deprecated Offline_Access的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆