简体   繁体   English

Facebook图形API中访问令牌的有效性

[英]VALIDITY of Access token in facebook graph api

如果我有一个访问令牌,我可以以某种方式解析它以知道它将在什么时间到期?

You can use Facebook's Debug Tool to check this if it's a small number of tokens 如果是少量令牌,您可以使用Facebook的调试工具来检查它

The expiry is also given to you along with the token at the point in the Authentication flow where you obtain the token itself - so ideally you'd store the expiry at that time and keep it up to date when you get a new token or extend the current token 在您获得令牌本身的身份验证流程中,您也会获得到期以及令牌的到期时间 - 理想情况下,您将在此时存储到期日期并在获得新令牌或延长时保持最新当前令牌

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

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