Sign In Register

How can we help you today?

Start a new topic
Answered

How can I logout/unlink user from the app?

 I worked with a FB test user for a while and now I would like to swap back to my own FB user. When I provide a different FB access token at the app init it throws this error:

 

{"@class":".AuthenticationResponse","error":{"accessToken":"ACCOUNT_ALREADY_LINKED"},"newPlayer":false,"requestId":"635964159066743689_1"}

 

I tried FB.Logout() and also:

 

 new EndSessionRequest().Send((response) =>
        {
            if (response.HasErrors)
            {
                Debug.Log("Error while logging out: " + response.Errors);
            }
            else
            {
                Debug.Log("GameSpark facebook logout successful.");

            }
        });

 But nothing works. What is the right approach to switch between users?


Many thanks.


Best Answer
I figured out myself:

 

GameSparks.Core.GS.Reset(); // only here to be able to log user out
FB.Logout(); // only here to be able to log user out

 

 


Answer
I figured out myself:

 

GameSparks.Core.GS.Reset(); // only here to be able to log user out
FB.Logout(); // only here to be able to log user out

 

 

Hi,


So no need to use EndSessionRequest() ?

Login to post a comment