Hi guys,
How can I do a programatically logout? When I'm logged in, I don't have the LoginButton, so I want to logout by my self. How can I accomplish that?
Have you tried LoginManager.logOut()?
I was trying LoginManager.logout()
Thanks :D
LoginManager.logOut() returns undefined is not a function
Use this code on any component to log out -
() => console.log("log in.")
}
onLogoutFinished={() => console.log("logout.")}/>
Calling LoginManager.logOut() does not work, both after and before facebook login.
Most helpful comment
Have you tried
LoginManager.logOut()?