Cannot logout and re-login
How do I get the login screen again..
I execute the logout code but never get the login screen again,, Selecting the Facebook button always redirect to the confirmation screen .
I have a flutter app and I am testing on an IOS device
You should unbind facebook before login again, but after unbinding, there appear another error. Here is the code:
FacebookAccessToken accessToken = await facebookLogin.currentAccessToken;
String result = await HttpUtilFacebook.delete(
"https://graph.facebook.com/me/permissions?access_token=${accessToken.token}");
if (!result.contains("success")) {
return;
}
https://github.com/roughike/flutter_facebook_login/issues/123
What is the status of this issue? I have also found that after logging out:
await facebookLogin.logOut();
...and then calling login again:
var result = await facebookLogin.logInWithReadPermissions(['email']);
...the login dialog does not appear, so there is no way to log in as a different Facebook user. Is the solution above by @windows7lake correct? (S/he says it leads to another error?) What is the right way to do this?
Any solution for this @roughike @windows7lake i am facing the same issue
@amitted You can try the way above,and make sure your fb Account useful. The account which I use in my app was frozen by FB because fb change their logo and we didn't upgrade.
Hi, @windows7lake what is HttpUtilFacebook here which package you are using?
@amitted HttpUtilFacebook is a net request class write by myself. You can use dio to do a delete request instead of HttpUtilFacebook.
I too hit the bump on this. I'm not sure if the method above by @windows7lake will work. Printing currentAccessToken gives null, yet doesn't show the dialog for selecting account/s.