Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
    • Like Button
    • Send Button
    • Follow Button
    • Comments
    • Activity Feed
    • Recommendations Box
    • Recommendations Bar
    • Like Box
    • Login Button
    • Registration
    • Facepile
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Plugins
    • Activity Feed
    • Comments
    • Facepile
    • Follow Button
    • Like Box
    • Like Button
    • Login Button
    • Recommendations Bar
    • Recommendations Box
    • Registration
    • Send Button
    • Share Dialog
    • Shared Activity
    • fb:name
    • fb:profile-pic
  • Beta Plugins
    • Migrations
      • Subscribe Button

    fb:profile-pic

    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. So you could specify width and height settings instead of using the size attribute, for example.

    <fb:profile-pic uid="12345" facebook-logo="true" linked="false" 
    width="300" height="400"></fb:profile-pic>
    <fb:profile-pic uid="12345" width="32" height="32" linked="true" \>
    <fb:profile-pic>

    Attributes

    • uid - 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".
    • size - 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). Or, you can specify width and height settings instead, as described below.
    • linked - Make the image a link to the user's profile. Default value is true
    • Facebook-logo - (For use with Facebook Connect only.) When set to true, it returns the Facebook favicon image, which gets overlaid on top of the user's profile picture on a site.
    • width - Specifies the desired width, in pixels, of the image (like an img tag).
    • height - Specifies the desired height, in pixels, of the image (like an img tag).
    Updated about 10 months ago
    Facebook © 2013 · English (US)
    AboutAdvertisingCareersPlatform PoliciesPrivacy Policy