08 6 / 2011

Grabbing Facebook user’s photo using Graph API

If you have a Facebook user’s id or username, you can actually grab their photo in 4 different sizes using the Graph API.

The url is: http://graph.facebook.com/{{username or user.id}}/picture?type={{size}}

The four sizes are : small, normal, large, and square.

Examples- 

Small (33px height)- http://graph.facebook.com/emilep/picture?type=small

Normal (67px height)- http://graph.facebook.com/emilep/picture?type=normal

Large (120px height)- http://graph.facebook.com/emilep/picture?type=large

Square (50x50px)- http://graph.facebook.com/emilep/picture?type=square