FacebookComponents icon indicating copy to clipboard operation
FacebookComponents copied to clipboard

Logout not working on iOs

Open christianascone opened this issue 5 years ago • 5 comments

Hi, I'm currently facing an issue with logout on iOs 12. Everything works well, but even if I call logOut method on LoginManager instance, my user is always logged in.

  • OS: iOs 12
  • FacebookComponents Version: 5.6.0.1

I see current token and profile (in my app context) are null after logout, but Safari's session still has the previous user.

private LoginManager facebookLoginManager = new LoginManager();
...
...
facebookLoginManager.LogOut();
facebookLoginManager.LogIn(facebookPermissions, this, OnFacebookLoginHandler);

Let me know if you need further information. Thank you very much

christianascone avatar Nov 13 '19 15:11 christianascone

@christianascone Thanks for reporting this. Can you provide a test case of this, please? Thanks in advance!

SotoiGhost avatar Dec 06 '19 17:12 SotoiGhost

@SotoiGhost Thank you for your reply. Currently I am able to login, but after I call logout and login methods again it always stay logged with previous user, so the only way to change user is using Safari.

Is there anything specific I can provide which may help you more? Thank you

christianascone avatar Dec 08 '19 13:12 christianascone

@christianascone Does this error happen on simulator or device?

SotoiGhost avatar Dec 13 '19 16:12 SotoiGhost

I have only tried on devices, with ios 12 and ios 13.

christianascone avatar Dec 13 '19 17:12 christianascone

I tried in the simulator and the error is happening I was using version 5.12.0 Not sure if there are some useful information here https://github.com/facebookarchive/facebook-swift-sdk/issues/215

rodrigojuarez avatar Feb 05 '20 03:02 rodrigojuarez