I'm not sure, but you can try with the actual url (the one to which fb redirects).
To get this url use redirect=0
, like this-
"http://graph.facebook.com/"+userID+"/picture?height=100&type=normal&width=100&redirect=0"
Then you'll get the response as-
{
data: {
url: "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1/t5.0-1/23122_595273610_9552621_q.jpg",
is_silhouette: false
}
}
Fetch this url from the dictionary and then try. I'm not sure but it helps.
But if it doesn't work, then it has to do with your code, I would suggest you to print the exact error/exception.
Edit:
I found that:
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.