Call us on 078 24 35 85 44 / e: info@thescube.com
logo


Showing Profile Photo on Custom Facebook Fan Page using FBML

Images on the custom Facebook fan pages have to link from outside of Facebook server. The images must exist on your own server or somewhere else in the web. Facebook only allows you to upload images on your profile page or for the logo of your Facebook fan page. But Facebook Markup Language or FBML provides code for pulling your profile or logo image to your fan pages so that you don’t need to link images from external server. The fbml tag fb:profile-pic provides this facility and it looks like below -

<fb:profile-pic uid=”11111111111″ linked=”true” size=”normal” />

The only mandatory attribute of fbml fb:profile-pic tag is UID. This is the ID number of profile or the fan page.

To get the UID for your profile photo go to your photos tab and click on any photo. In the address bar of web browser, the URL will end with like this id=xxxxxxxxx, where xxxxx… is the number of UID associated with your profile. You have to use this number as UID value. 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= xxxxxxxxx. That number is the UID.

The remaining attributes for the profile-pic are optional. Short description of all attributes is as below –

uid – The ID for profile or fan page. This is a compulsory attribute.
size – The size of the image. Size can be thumb (50px wide), small (100px wide), normal (200px wide), and square (50px by 50px). If you want to set a specific size, use width and height for image size.
linked – This attribute makes the image link to the user’s profile.
width – This attribute sets the width of the image in pixels
height – This attribute sets the height of the image in pixels

VN:F [1.9.17_1161]
Rating: 4.3/5 (3 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Showing Profile Photo on Custom Facebook Fan Page using FBML, 4.3 out of 5 based on 3 ratings

You might be interested in:

  1. Aaron
    Terrific Post! I am really into social media right now (like everyone else out there!), especially Facebook Marketing and FBML. It can be hard to keep up to date with such a fast changing innovative topic but I manage to do it through the fan page factory (http://facebook.com/thefanpagefactory ?) and blog posts exactly like yours. Tips and tricks rock. I am trying to learn as much as possible to put myself ahead of the curve. So thank you again! Enjoy! Aaron
  2. Lerato
    How do i show photo from an album i created on facebook?

Leave a Reply

*

captcha *

Login with Facebook: