Fb:profile-pic

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Turns into an img tag for the specified user's or Facebook Page's profile picture. The tag itself is treated like a standard img tag, so attributes valid for img are valid with fb:profile-pic as well.


[edit] Attributes

RequiredNameTypeDescription
required uid int The user ID of the profile or Facebook Page for the picture you want to display. On a canvas page, you can also use "loggedinuser".
optional size string The size of the image to display. (default value is thumb). Other valid values are thumb (t) (50px wide), small (s) (100px wide), normal (n) (200px wide), and square (q) (50px by 50px).
linked bool Make the image a link to the user's profile. (default value is true)


[edit] Examples

<fb:profile-pic uid="12345" linked="true" />


<fb:profile-pic uid="12345" size="square" linked="true" />


[edit] See Also

You can see a real world example of this tag in all three demo applications (Footprints, Restaurants and Who's Showing Up). Go to Demos for more details and to download and install the demo apps.