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.
Asked
Active
Viewed 4,717 times
3

Rafał Swacha
- 482
- 2
- 6
- 20
-
Possible duplicate of - http://stackoverflow.com/questions/8574759/getting-full-size-profile-picture – Rikesh Aug 31 '12 at 12:32
2 Answers
5
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.

cpilko
- 11,792
- 2
- 31
- 45
-
Wow, I didn't know about the width and height parameters! This is probably something I need! Thanks! – Rafał Swacha Aug 31 '12 at 12:55
-
They were just announced ~10 days ago. Follow the developer blog. There are new features released every week. – cpilko Aug 31 '12 at 13:02
0
http://graph.facebook.com/YOURNAME/picture
Replace YOURNAME
with name of the user you want to get the photo of.