I'm able to get profile photo of a user using Facebook SDK 4.0 on android using this -
loginButton = (LoginButton)findViewById(R.id.login_button);
profile = (ImageView)findViewById(R.id.profile);
loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
String userId = loginResult.getAccessToken().getUserId();
String imageUrl = String.format("https://graph.facebook.com/%s/picture?type=large", userId);
Picasso.with(getBaseContext()).load(imageUrl).into(profile);
}
}
How to go about getting all the photos in a user's profile ? Any help is appreciated.