Not long ago we shared how you can add a live Facebook share button to your WordPress site using a third-party script. Well, Facebook has decided to release the official version of the fshare account button, so why rely on the third party script any more?
To add the official Facebook Share button, simply open a theme file of your choice and add the following code:
The code above will add a big button like tweetmeme that will display the count in the form of a box. If you want to display a compact version, just use the following code:
Feel free to wrap the codes in any style you like. For more documentation and options visit the official Facebook page.