Check Facebook canceled access and password reset

I use the SDK to connect my Android application to Facebook. I can show the login page and log in to my application through my facebook account. But according to: https://developers.facebook.com/docs/mobile/android/build/#sso

I have to keep track of two actions, such as revoking access and changing the password. The response parameter returns the following results:

User revoked access to your app: {"error":{"type":"OAuthException","message":"Error validating access token: User 1053947411 has not authorized application 157111564357680."}}

OR when password changed: {"error":{"type":"OAuthException","message":"Error validating access token: The session is invalid because the user logged out."}}

Now, my question is: how do I handle or catch the following errors? Thank.

+3
source share
1 answer

There is an official guide there: Handling invalid and expired access tokens .

Android says:

Native Android Apps

, onComplete. facebook.authorize() .

0

All Articles