问题
How to obtain a full size profile picture from Facebook ?
http://graph.facebook.com/{ID}/picture?type=large is way to small. I want a bigger size ? Is that possible ? I need a way without FBML because that is soon to end
回答1:
You can specify width
and/or height
and Facebook will return an image less than or equal to the given size.
http://graph.facebook.com/{ID}/picture?width={size_in_pixels}&redirect=false
回答2:
you have to pass another variable "redirect=true"
in the url. That means, your URL will be like http://graph.facebook.com/{ID}/picture?type=large&redirect=true
回答3:
If you have user_photos permission you should be able to get the current profile picture by finding the first image in the Profile Pictures Album. Here is some sample code from Kilian Valkhof.
来源:https://stackoverflow.com/questions/10498103/how-to-obtain-full-size-profile-picture-of-facebook