The Facebook Access Credentials are invalid

0 votes
I used GetTopNRankersFromFacebook, I receive an Exception
com.shephertz.app42.paas.sdk.csharp.App42BadParameterException: {"httpErrorCode": "400", "appErrorCode": "3025", "message": "Bad Request", "details": "The Facebook Access Credentials are sai. Received error response of type OAuthException Facebook: Error validating access token: Session has expired on Tuesday, 21-Jul-15 23:00:00 PDT. The current time is Wednesday, 22-Jul-15 22:00:42 PDT . "}
 
The previous game I never have problems like this. Can you explain more for me?
asked Jul 23, 2015 in App42 Cloud API-BaaS by Trần Duy Tân (10 points)
edited Jul 23, 2015 by Trần Duy Tân

1 Answer

0 votes
Hi,

LinkUserFacebookAccount API tries to link with the facebook account using the access token provided.

Log says, access token is expired. Are you using facebook sdk to get the access token? Share some more details on login process you are following, it will help to get clear idea about the issue.

Thanks.
answered Jul 23, 2015 by rajeev.etc (1,660 points)
Hi!
1. I login facebook and get facebook id and token.
2. Then I used to LinkUserFacebookAccount to register with App42.
3. I then stored score by SaveUserScore
4. I use GetTopNRankersFromFacebook get a list of their friends and score

everything running smoothly until today I call GetTopNRankersFromFacebook
Access token expires after 2 hours, you can solve this issue by attempting relogin and get new access token. As in the log, access token was expired on "Tuesday, 21-Jul-15 23:00:00 PDT" but the call was made on "Wednesday, 22-Jul-15 22:00:42 PDT".
Let me know if the problem continues.
You can also go through this link for managing facebook access token: https://developers.facebook.com/blog/post/2011/05/13/how-to--handle-expired-access-tokens/
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...