Free Wordpress Blog Setup

Official Facebook Share Count Button for your WordPress

By Editorial Staff in Tutorials
Official Facebook Share Count Button for your WordPress

Not too long ago we shared how you can add a live facebook share button in your WordPress site using a third party script. Well Facebook has decided to release the official version of the fshare count button, so why rely on the third party script anymore?

To add the Official Facebook Share button simply open up a theme file of your choice and add the following code:

<a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

The code above will add a big tweetmeme like button that will display count in more like a box form. If you want to display a compact version then simply use the code below:

<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

Feel free to wrap the codes around with any styling that you like. For further documentation and options visit the Official Facebook page.

What Next?

Digg it
Save This Page
Subscribe to WPBeginner
Stumble it
Free Wordpress Blog Setup

Comments

5 Responses to “Official Facebook Share Count Button for your WordPress”
  1. Shannon says:

    This is not working as advertised. The button shows up but it doesn’t not display share counts after refreshing the page.

  2. Andrea says:

    Unfortunately, I’m having the same issue as Shannon above had … it shows up only as a small button with an “F” on it. I clicked it myself and went through the steps of sharing it on Facebook and the image then changed to show a count of “1.” I then refreshed the page and it changed back to a small icon with just the “F” – no count was shown. I checked FB to ensure that it did, in fact, post to my wall.

    I copied your first set of code into my theme via OpenHook in Thesis and placed it after my posts.

    I’m not sure what is going wrong?

Share Your Opinions

Tell us what you're thinking...
and if you want a pic to show with your comment, then get gravatar!

Please make sure that you have read our Comment Policy.

Due to high volume of request from our readers, we are adding this feature that allows you to stay updated with this post's comments without having to participate in the discussion even though we would love your input as always. Don't worry we hate SPAM just as much as you do, so you will never receive any SPAM messages from our site and that's our promise to you.

Subscribe without commenting

Close Bar