Balázs Lombosi Balázs Lombosi -4 years ago 77
Android Question

Android facebook login always ask for user after logout

I am implementing a facebook login with facebook SDK on android.

compile 'com.facebook.android:facebook-android-sdk:4.+'


I ' m logging in with the user as

callbackManager = CallbackManager.Factory.create();
loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
..
}


And for log out i use my own log out button and log out the user programmatically:

LoginManager.getInstance().logOut();


My question is:

After log out when i click on "continue With facebook" the previous user information pop up to "Continue As XY". I don't want this. I want to ask for email, password again every time if somebody wants to log in after log out. How can i do this?

Answer Source

Actually i found the solution. I changed the login behavior for the FB login button, for this i used:

    loginButton.setLoginBehavior(LoginBehavior.WEB_ONLY);

So every time it pops up the WEB view for login button.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download