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

前端 未结 4 765
悲哀的现实
悲哀的现实 2020-12-29 14:18

I used facebook 3.6 sdk . i want to get profile picture from graph user , last time i got image but now it returns null Bitmap.

I used following code

4条回答
  •  情话喂你
    2020-12-29 14:56

    Auto redirection works automatically when original and redirected protocols are same.

    So, try to load images from https instead of http : "https://graph.facebook.com/USER_ID/picture"; since image's url is "https://fbcdn-profile-a.akamaihd.net/...."

    Then BitmapFactory.decodeStream shall work again.

提交回复
热议问题