【发布时间】:2017-02-04 23:10:51
【问题描述】:
我正在尝试处理 Facebook 令牌失效时的事件。例如,当用户更改 Facebook 密码时。当我使用时:
FBSDKAccessToken.refreshCurrentAccessToken
并且用户更改密码,我会得到
Error validating access token: The session has been invalidated because the user has changed the password.
错误如下所示:
com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
body = {
error = {
code = 190;
"error_subcode" = 460;
"fbtrace_id" = HFdKjQiGR0m;
message = "Error validating access token: The session has been invalidated because the user has changed the password.";
type = OAuthException;
};
};
code = 400;
}, NSLocalizedRecoveryOptions=(
OK,
Cancel
)}
如何验证这些错误代码以便采取适当的措施?
【问题讨论】:
标签: ios swift facebook-sdk-4.0