简体   繁体   English

替代Facebook离线访问令牌

[英]alternative to facebook offline access token

I'm making a facebook application that will scan a users' news feed on a daily basis - but the offline access token has been deprecated. 我正在制作一个Facebook应用程序,该应用程序将每天扫描用户的新闻提要-但已弃用了脱机访问令牌。

I know that the access token can be extended to 60 days. 我知道访问令牌可以延长到60天。 So if a user doesn't use my application for 60 days, would I be not able to access their information after that? 因此,如果用户在60天内不使用我的应用程序,那之后我将无法访问他们的信息吗?

I read the developers section but didn't understand it properly. 我阅读了开发人员部分,但对它的理解不正确。

That's exactly the point. 这就是重点。 You'll need to code your app to run through an authentication flow if the access token expires. 如果访问令牌过期,则需要对应用进行编码以通过身份验证流程运行。 Remember, the access token can expire for other (legitimate) reasons, other than timeout. 请记住,访问令牌可能会由于其他(合法)原因(而不是超时)而过期。 If you're not asking for new permissions, and need to grab a new access tokens, the flow should happen without any user actions required. 如果您不要求新的权限,而需要获取新的访问令牌,则该流将发生而无需任何用户操作。

You'll need to code for access tokens failing regardless of offline_access - so do it right! 不管offline_access如何,您都需要为访问令牌编码失败-这样做正确! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM