How to get facebook profile picture of user in facebook SDK 3.0 Android

前端 未结 8 1106
太阳男子
太阳男子 2020-12-24 15:22

i am using facebook SDK 3.0 i have to get profile picture of user login. Here is the code I use:

URL image_value = new URL(\"http://graph.facebook.com/\"+id         


        
8条回答
  •  天涯浪人
    2020-12-24 15:46

    If you are trying to display profile pic in your app, use ProfilePictureView from Facebook SDK.

    Refer This

    Just call setProfileId(String profileId) on it.

    It will take care of displaying the image.

提交回复
热议问题