How to check if user is logged in with FB SDK 4.0 for Android?

A much simpler solution worked for my case (I don’t know if this is the more elegant way though):

public boolean isLoggedIn() {
    AccessToken accessToken = AccessToken.getCurrentAccessToken();
    return accessToken != null;
}

Leave a Comment