Intathep
Intathep

Reputation: 3388

Log in Parse through Facebook Issue

Parse always remember first Facebook account that i use for Parse Log-In, even if i switch Facebook account in Facebook app to another it always return first Facebook account

This is how i log-in / out

ParseFacebookUtils.logIn(this, new FacebookLogInCallback());

.

private class FacebookLogInCallback extends LogInCallback {

    @Override
    public void done(final ParseUser user, final ParseException exception) {
       //user always first account
    }
}

.

ParseUser.logOut();

What am i missing ?

Thanks

Upvotes: 2

Views: 1053

Answers (2)

Cynichniy Bandera
Cynichniy Bandera

Reputation: 6103

I think the same should also be done before ParseFacebookUtils.unlink(). Otherwise you will get tied to old account automatically on next link. (Link is very similar to login, the only difference is in permissions requested from FB).

Upvotes: 0

Intathep
Intathep

Reputation: 3388

i found solution myself

call ParseFacebookUtils.getSession().closeAndClearTokenInformation();

before

ParseUser.logOut();

Upvotes: 7

Related Questions