3

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.

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 Answers2

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
0
http://graph.facebook.com/YOURNAME/picture

Replace YOURNAME with name of the user you want to get the photo of.

See also: Facebook API - How do I get a Facebook user's profile image through the Facebook API (without requiring the user to "Allow" the application)

Community
  • 1
  • 1
Basith
  • 1,077
  • 7
  • 22