Take the 2-minute tour ×

I have successfully implemented authorization with facebook in my native android app.

Now I have following problem:

User logout from my app and I call facebook sdk logout method. But when user presses login button it automatically redirects back to my app without showing "Already authorized" window, so he cannot switch to another user.

Is that normal behavior or I've made something wrong? How can I solve this issue?

share|improve this question
Did you ever solve this? –  BlueVoodoo Apr 8 '13 at 11:28
It seems that when the user has an opened session with the official facebook app, then, it never ask for permission in our android app. Try closing the session in the official FB app. –  cibercitizen1 Feb 19 at 10:15
@BlueVoodoo The user has to close the session in the official FB app in the phone, not only in "our custom app". –  cibercitizen1 Feb 19 at 10:17

2 Answers 2

If you would like to switch to another user, you can refer to the "SwitchUserSample" in Facebook SDK for Android.

Here is some example code fyi.

Session currentSession = Session.getActiveSession();
newSession = new Session.Builder(LoginActivity.this).build();
newSession.openForRead(new Session.OpenRequest(LoginActivity.this)
share|improve this answer

No that's not default we can switch user. While you are doing Logout you are not clearing credentials properly so such problems arise , so you need to remove credentials perfectly.

You should got through the HackBook code given by Facebook for all features , where you have to save you Facebook object in SessionStore class and handle it accordingly :

 private class SessionListener implements AuthListener, LogoutListener {

    public void onAuthSucceed() {
        SessionStore.save(mFb, getContext());

    public void onAuthFail(String error) {

    public void onLogoutBegin() {

    public void onLogoutFinish() {
share|improve this answer
I've tried Hackbook sample. It has the same problem. When I logout and login again it doesn't show "Already Authorized screen". –  Alexey Zakharov Jul 31 '12 at 8:12

Your Answer


