Reputation: 492
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.
Upvotes: 3
Views: 4740
Reputation: 1075
http://graph.facebook.com/YOURNAME/picture
Replace YOURNAME
with name of the user you want to get the photo of.
Upvotes: 0
Reputation: 11852
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.
Upvotes: 5