Posted on 22 February, 2010 By Kim Woodbridge 16 Comments

How to Use FBML to Display Your Profile Photo on a Custom Facebook Fan Page

 
Share

pixie profile (by atomicshark)

On custom Facebook pages images must exist on your own server (or somewhere else on the internet) and linked to from the Facebook page code.

The only images that can be uploaded directly to Facebook are the logo for your fan page and the image used on your profile page.

FBML provides code that will pull your profile or logo picture to your fan page so you don’t have to link to it from a different server.

Here’s how you do it.

The fbml tag is fb:profile-pic and looks like the following:

<fb:profile-pic uid="629152408" linked="true" size="normal" />

The only required attribute is uid. This is the ID number for the profile or fan page. Locating the UID is easier said than done but, then this is Facebook ;-)

To get the uid for your profile photo go to your photos tab. Click on any photo. In the address bar in your web browser, the url will end with id=629152408. That number is the uid you use with the fbml profile pic code.

To get the uid for your fan page, click on the logo. The url in the address bar of your web browser will end with id=84300445447. That number is the uid.

Please note that in the above examples I have used my own uid’s. Your numbers will be different.

Other attributes for profile-pic are optional.

  • uid – the id number for the profile or fan page (this is not optional)
  • size – the size of the image. Values can be thumb (50px wide), small (100px wide), normal (200px wide), and square (50px by 50px). The default used is thumb is a size isn’t specified. If you want to set a specific size, use width and height, which are listed below.
  • linked – makes the image link to the user’s profile. The default is true, which links to the page
  • width – sets the width of the image in pixels

  • height – sets the height of the image in pixels

As I was writing this it occurred to me that locating the uid is a pain. It used to be easier before you were able to get custom names. Does anyone know a better way? By the time the uid is located and used with the fbml code, an image probably could have been uploaded to a server and linked to on the custom page.

Anyway, that’s how to use fbml to display your profile picture or logo on a custom facebook fan page.

photo credit: atomicshark


Related Posts:
  • How to Add a Custom Tab to a Facebook Fan Page
  • How to Create a Custom Facebook Fan Page
  • How to Link to Your Facebook Fan Page from Your Profile Page
  • (Anti) Social Facebook Portfolio
  • How to Receive Notifications for Comments on a Facebook Fan Page
  • Posted In : Facebook
    If you enjoyed this post, please subscribe to my RSS Feed. You can also connect with my Facebook page or follow me on Twitter.



    16 Responses to “How to Use FBML to Display Your Profile Photo on a Custom Facebook Fan Page”

    Trackbacks/Pingbacks
    1. » Blog Archive » How to Build a Facebook Landing Page for Your Business
    Leave a Comment
    You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

    CommentLuv Enabled

    Recent Comments

      • Ari Herzog: Agreed on the updates/inbox snafu. I rarely see page updates and I know where they are! .-= Ari Herzog´s last blog .....
      • jayson: Kim, Love the themes. I am looking to update the theme on my site to something more appropriate. My site is all abou...
      • vered: "I wish more people would use this. I think it’s silly when I get updates for things occuring in Kansas and California –...
      • Dennis Edell @ Direct Sales Marketing: I was speaking generally, not specifically this month. how exactly do you work things? .-= Dennis Edell @ Direct Sales M...
      • Lucy Beer: Unfortunately I think next to no-one actually sees those "Updates". They're buried in a subsection of the inbox and I do...
      • Kim Woodbridge: Hi Marbella - Thanks! I had a great time....
      • Kim Woodbridge: Hi Julie - I'll probably try kayaking again next summer but I don't know if I will become much of a kayaker - I had a di...
      • Kim Woodbridge: Hi Vered - If you ever get the chance, you should go. It's like a different world - it's so quiet and peaceful....

    About

    Kim Woodbridge is an accomplished Information and Technical Consultant specializing in the entire implementation of a WordPress based website including installation, theme design, upgrades, unique customizations and ongoing site maintenance.

    Wordpress Services

    • Installation, upgrades and maintenance
    • Conversion of existing html and css templates
    • Theme and plugin recommendations
    • CSS customizations
    • Troubleshooting and tweaks for unique situations
    • Customization for individual blogging goals and needs
    • Training and advice