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


Add a Share Button to Facebook Fan Page Using Facebook FBML

Facebbok FBML provides the code for adding a little share button on your customized Facebook fan page or business page. This share button is similar to the button that you see on the bottom right of the wall. The share button does not appear when you are on any tab rather tan wall. For giving facility to the visitors to share your page with their friends or even post your page to their own wall, the share button is important. FBML allows you to add the button easily and helps to promote your fan page.

Unfortunately, Facebook share button can’t be customized for unique look. The code is below -

<fb:share-button href=”http://www.facebook.com/ShovanSargunam” />

The only thing that you need to change is the URL after http:// to the one for your own fan page. When the button is clicked on the share box it looks like the following:

Facebook Share Box1 Add a Share Button to Facebook Fan Page Using Facebook FBML facebook
Using Facebook FBML that includes Meta class rather than URL class allows making your share box a bit wonderful. Meta class of FBML allows you to specify the image that is displayed rather than using the default logo. You are also able to include a description that contains more information about the content of your page. Below is the code –

<fb:share-button>
<meta name=”medium” content=”mult”/>
<meta name=”title” content=”name of fan page”/>
<meta name=”description” content=”description of fan page”/>
<link rel=”image_src” href=”URL to image location” />
<link rel=”target_url” href=”http://www.facebook.com/ShovanSargunam”/>
</fb:share-button>

Short description of all attributes are as below –

meta name=”title” content=””name of fan page” – the name of your fan page, use a catchy title for attracting visitors.
meta name=”description” content=”description of fan page” – the description of you page, write unique and handy description.
link rel=”image_src” href=”url to image location” – if you are using an alternative image, this would be the location on your image
link rel=”target_url” href=” URL to your facebook fan page” – the url to the fan page that you are sharing

VN:F [1.9.17_1161]
Rating: 4.6/5 (5 votes cast)
VN:F [1.9.17_1161]
Rating: -1 (from 3 votes)

Add a Share Button to Facebook Fan Page Using Facebook FBML, 4.6 out of 5 based on 5 ratings

You might be interested in:

  1. Brian
    Hmm, why isn't this working? Copied the code exactly, using a working image, no image is showing up though. Thanks for your help.
  2. Pingback: Specifying Facebook Share Image | AllGraphicsOnline.com

  3. humor shkodran
    fb:share-button>

Leave a Reply

*

captcha *

Login with Facebook: