It is very easy to implement Facebook share button in blog powered by wordpress.
- Log-in to your blog and open the file in which you would like to integrate facebook share button (e.g. single.php)
- Copy and paste the following code in the file and save the file.
<a name="fb_share" type="button_count" share_url="<?php the_permalink(); ?>">Share</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Loader" type="text/javascript"></script>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
type=ābutton_countā in the above can be modified to display different styles of the facebook share button.
|
Code |
Style |
Size (pixel) |
|
box_count |
|
57×57 |
|
button_count |
|
96×18 |
|
button |
|
56×18 |
|
icon_link |
|
51×15 |
|
icon |
18×15 |









