I want to get profile picture and User Name of user which login in android app and set in Imageview
i am not getting how to get profile picture.
Thanks Advance
I want to get profile picture and User Name of user which login in android app and set in Imageview
i am not getting how to get profile picture.
Thanks Advance
Just use the facebook ProfilePictureView instead of an image view:
<com.facebook.widget.ProfilePictureView
android:id="@+id/friendProfilePicture"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:padding="5sp"
facebook:preset_size="small" />
You can set the size to small/normal/large/custom.
Then in your code, set the user facebook id like this:
ProfilePictureView profilePictureView;
profilePictureView = (ProfilePictureView) findViewById(R.id.friendProfilePicture);
profilePictureView.setProfileId(userId);
Hope this help.