Created
February 21, 2016 11:52
-
-
Save pavlospt/d1f9bdf38f9db706f136 to your computer and use it in GitHub Desktop.
LoginButton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mLoginButton.setReadPermissions("public_profile", "email"); | |
mLoginButton.registerCallback(mCallbackManager, new FacebookCallback<LoginResult>() { | |
@Override | |
public void onSuccess(LoginResult loginResult) { | |
Timber.e("Result:" + loginResult.getAccessToken()); | |
gotFacebookPermission = true; | |
startRequestingFacebookStaff(loginResult.getAccessToken()); | |
} | |
@Override | |
public void onCancel() { | |
} | |
@Override | |
public void onError(FacebookException e) { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment