How to get one's full-size profile picture in Facebook's PHP SDK? I know about the ?type=large
method, but result is only 200px wide.
If ?type=large
is only returning a 200px wide image, then that is the largest one Facebook has.
You can scale the image larger by specifying the width and height in the query string: ?width=300&height=300
and Facebook will return a scaled-up version of the image. See this blog post for more info.
The limit on this seems to be 75% larger than the size of the largest stored image Facebook has. For example, my large profile pic is ~180px. If I request a width or height > 312, I get a 312px image back.
http://graph.facebook.com/YOURNAME/picture
Replace YOURNAME
with name of the user you want to get the photo of.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.