简体   繁体   English

FB IOS SDK是否提供检查访问令牌有效性的方法?

[英]Does FB IOS SDK provide a method to check for the validity of accesstoken?

I need to check validity of facebook auth token when my app becomes active. 我的应用程序激活后,我需要检查facebook身份验证令牌的有效性。

Auth token might become invalid before the expiry timestamp due to the following reasons 由于以下原因,身份验证令牌可能在到期时间戳记之前变得无效

  • user changes account password 用户更改帐户密码
  • user unauthorizes the app 用户未授权该应用

does Facebook IOS SDK provides any method to handle this?? IOS SDK是否提供任何方法来处理此问题?

yes. 是。 when any API action goes to exception, you know for sure that you have wrong access token :) 当任何API操作进入异常时,您肯定会知道访问令牌错误:)

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

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