Profile.Properties properties = new Profile.Properties.Builder()
.add(Profile.Properties.ID).add(Profile.Properties.EMAIL).add(Profile.Properties.NAME)
.add(Profile.Properties.FIRST_NAME)
.build();
mSimpleFacebook.getProfile(properties, onProfileListener);
OnProfileListener onProfileListener = new OnProfileListener() {
@Override
public void onComplete(Profile profile) {
Log.i("getProfile", "My profile id = " + profile.getId());
Profile.Properties properties = new Profile.Properties.Builder() .add(Profile.Properties.ID).add(Profile.Properties.EMAIL).add(Profile.Properties.NAME) .add(Profile.Properties.FIRST_NAME) .build(); mSimpleFacebook.getProfile(properties, onProfileListener);
OnProfileListener onProfileListener = new OnProfileListener() { @Override public void onComplete(Profile profile) { Log.i("getProfile", "My profile id = " + profile.getId());