简体   繁体   中英

Error using Facebook Graph api to get email, name?

I have created application in Android integrated with Parse.com for Facebook and twitter integration.

I login with facebook using ParseFacebookUtils which gives me session access token which in turns i use it to call graph API.

Earlier it worked.

But now i get following error:

  Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth "Facebook Platform" "invalid_token" "Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons."}

    04-22 21:35:17.631: W/msgr(:<default>):k(30067): com.facebook.http.protocol.e: [code] 190 [message]: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. [extra]: 

This is graph API REST call i make:

https://graph.facebook.com/v2.1/me?email,name&access_token=<access-token>

If i use same graph API from Graph API explorer it returns values but not from application which worked earlier.

[I changed password few days back but its login and storing user to parse but not getting response for graph API]

Try it with another facebook account, and if it works you must renew you token for the account where you changed password.

Have you tried to log in with another account in your app ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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