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
