Reputation: 43
I'm trying to get all the ids of all my friends along with their profile image. I'm using https://graph.facebook.com/me/friends?fields=picture&access_token=[myToken]
I'm getting this returned:
{
"data": [
{
"id": "xxx",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/xxx_q.jpg"
}
The picture url that returns is for a really small image. How can I get a larger image?
Upvotes: 2
Views: 2389
Reputation: 7289
Recommended
According to Doc (section "Pictures"), url of profile's photos can be built with the user id
For example, assuming user id is in $id :
"http://graph.facebook.com/$id/picture?type=square"
"http://graph.facebook.com/$id/picture?type=small"
"http://graph.facebook.com/$id/picture?type=normal"
"http://graph.facebook.com/$id/picture?type=large"
Hack
You can replace the q
parameter with s
or b
:)
Upvotes: 2