Getting full-size profile picture

后端 未结 7 1930
我寻月下人不归
我寻月下人不归 2020-11-30 19:40

Is there anyway to get the full-size profile picture using any facebook api?

http://graph.facebook.com/{ID}/picture?type=large is way to small.

Thanks :)

7条回答
  •  情歌与酒
    2020-11-30 20:29

    As noted above, it appears that the cover photo of the profile album is a hi-res profile picture. I would check for the album type of "profile" rather than the name though, as the name may not be consistent across different languages, but the type should be.

    To reduce the number of requests / parsing, you can use this fql: "select cover_object_id from album where type='profile' and owner = user_id"

    And then you can construct the image url with: "https://graph.facebook.com/" + cover_object_id + "/picture&type=normal&access_token=" + access_token

    Looks like there is no "large" type for this image, but the "normal" one is still quite large.

    As noted above, this photo may be less accessible than the public profile picture. You need the user_photos or friend_photos permission to access it.

提交回复
热议问题