We're currently have the issue that we didn't know that we need need update the User's Facebook token from time to time in order to be able to get their Friend List with Facebook friends.
Therefore, currently one of our Cloud Script calls is crashing with this error
"errorMessage": "(OAuthException - #190) Error validating access token: Session has expired on Friday, 05-Jan-18 07:01:29 PST. The current time is Saturday, 06-Jan-18 11:36:02 PST.",
A few questions about that:
1) What is the designated way to update the Facebook Token, is it calling LoginFacebook from time to time?
2) The error code for this is 1143 (so the standard facebook API error according to the PlayFabError.h in our C++ Client SDK). Are the PlayFab error codes available in Cloud Script, so we can check for them? Or should we manually define all the error codes that we need?
3) Can we somehow check if the Facebook Token is outdated in CloudScript? Or do we need to waste an API Call with a try/catch to see if GetFriends will return an error?
Thanks for taking the time to help :)