如何跟踪Facebook密码更改和个人资料更改? [英] How to track facebook password change and profile changes?

查看:185
本文介绍了如何跟踪Facebook密码更改和个人资料更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Facebook iOS SDK 4.0集成到我的移动应用程序中.我遇到了这样一种情况:用户使用Facebook凭据登录了我们的移动应用程序,过了一段时间,用户在Facebook中更改了密码和名字.现在如何在移动应用程序中跟踪此更改?并重定向用户以验证移动应用程序中的facebook凭证?

I am integrating facebook iOS SDK 4.0 in my mobile app. I came into scenario where user logged into our mobile app with facebook credentials, after some time the user changed his password and Firstname in facebook. Now How do I track this change in mobile app? and redirect user to validate facebook credentials in mobile app?

推荐答案

在SDK的v3和v4中,访问令牌都在设备上本地缓存(默认情况下),这是唯一了解访问令牌是否仍然是有效"是发出图形请求.

In both v3 and v4 of the SDK, the access token is cached locally on the device (by default), and the only way to know if it's still "valid" is to make a graph request.

如果您有缓存的令牌,则可以在应用程序启动期间发出/me或/permissions请求,并检查错误,如果令牌不再有效,则提示用户重新登录. SDK中还内置了一些自动错误恢复机制,请参见 https://developers.facebook. com/docs/ios/errors .

You can make a /me or /permissions request during app start if you have a cached token, and check for errors, and prompt the user to re-log in if the token is no longer valid. There are also some auto-error recovery mechanisms built into the SDK, see https://developers.facebook.com/docs/ios/errors.

这篇关于如何跟踪Facebook密码更改和个人资料更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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