i\'m new on android - facebook integration.
I\'m trying to integrate my app with facebook, so i follow all the steps on the facebook tutorial, and things work fine (at le
After looking around, i realize that the Session class on the new facebook SDK is not used. Instead that i found something like this, it solved my question:
loginButton = (LoginButton)findViewById(R.id.login_button);
loginButton.registerCallback(callbackManager, new FacebookCallback() {
@Override
public void onSuccess(LoginResult loginResult) {
Log.e("Content", "User ID: " + loginResult.getAccessToken().getUserId() + "\n" + "Auth Token: " + loginResult.getAccessToken().getToken());
}
@Override
public void onCancel() {
//"If login attempt canceled.";
}
@Override
public void onError(FacebookException e) {
//"If login attempt Failed.";
}});