bisrael / cordova-plugin-facebook

Cordova Plugin for iOS and Android Facebook SDK
MIT License
25 stars 21 forks source link

Logout not working #15

Open mahmoudissmail opened 8 years ago

mahmoudissmail commented 8 years ago

CordovaFacebook.logout({ onSuccess: function() { alert("The user is now logged out"); } }); When I use the logout method and then I want to login again the dialog displayed as authorized. the logout function not working. how can i solve logout problem ?

hanjukim commented 8 years ago

I think you need revoke permission.

See section Revoking Login https://developers.facebook.com/docs/facebook-login/permissions/requesting-and-revoking

jeffersonest commented 7 years ago

Logout not working with this code:

$('.exit-bt').click(function () {
CordovaFacebook.logout({
onSuccess: function() {
alert("The user is now logged out");
}
});
CordovaFacebook.logout();
});

What I need?