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

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

    Use https:// instead of http:// i faced the same problem.

    URL image_value = new URL("https://graph.facebook.com/"+id+"/picture" );
    profPict = BitmapFactory.decodeStream(image_value.openConnection().getInputStream());
    

提交回复
热议问题