Sign In Register

How can we help you today?

Start a new topic
Answered

Logout

Good day.

is FB.logout() to assure that the user has done logout?

Supposing that after FB.logout() the user changes his FB.id and restarts the FB + GS login process, will everything work?


Best Answer
Hey,
we handle it by calling EndSessionRequest to end the current session of the player, and if they have recently logged on with G+ or FB, it will call the appropriate logout method. Then we clear all local data that's related to the player, after that you can login and get all the new data for your "new" player. Hope this helps.

To answer the second question, I think it if you do a EndSessionRequest then change the FB.id then do a login, it should work just fine and create a new account.

-Ali

 

1 Comment

Answer
Hey,
we handle it by calling EndSessionRequest to end the current session of the player, and if they have recently logged on with G+ or FB, it will call the appropriate logout method. Then we clear all local data that's related to the player, after that you can login and get all the new data for your "new" player. Hope this helps.

To answer the second question, I think it if you do a EndSessionRequest then change the FB.id then do a login, it should work just fine and create a new account.

-Ali

 

Login to post a comment