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

前端 未结 8 1075
太阳男子
太阳男子 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:32

    You should change your code following:

    URL image_value = new URL("http://graph.facebook.com/"+id+"/picture" );
    

    Possible GET parameters for the URL can be found here: https://developers.facebook.com/docs/graph-api/reference/user/picture/

提交回复
热议问题