ywj7931 ywj7931 - 5 months ago 54
Android Question

Change Facebook Login button from Logout to Login?

After user logins via facebook, the button will change from "Login" to "Logout", is there any way pro grammatically change back to "Login" status?


You have to be logged out to show LoginButton again, otherwise you can't see LoginButton. If you want to logout pro grammatically, you can do it like,

public void logOut() {

and call this method where you want to show LoginButton again.