When should I renew an ACAccount? Or, how to check if the credential is expired. (Facebook)

孤街浪徒 提交于 2019-12-04 17:09:26

You should renew the user acc everytime it is out of sync. This may happen if the user has changed his password or when the acc session has expired.

Yo can know you are in that scenario using the following notification:

ACAccountStoreDidChangeNotification

I don't think there is active way , best is to write renew function and call renewCredentialsForAccount of the framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!