Add Facebook share button in wordpress blog

Posted by saurabh On January - 18 - 2010
   Share ('DiggThis’) Delicious  delicious      Google BuzzGoogle Buzz      SocialTwist Tell-a-Friend     
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)

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

facebook_share_button_1

57×57

button_count

facebook_share_button_2

96×18

button

facebook_share_button_3

56×18

icon_link

facebook_share_button_4

51×15

icon

facebook_share_button_5

18×15

VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)
95 views ;  TAGS: , , , ,
  • Can u also share with us how to autopost to facebook when i post something in the site like how we autopost to twitter ?
  • Nice post you got here. I'd like to read more about this topic. Thnx for giving that info.
  • I found this article useful in a paper I am writing at university. Hopefully, I get an A+ now!

    Thanks

    Bernice Franklin
  • MrBarns
    what a great site and informative posts, I will add a backlink and bookmark your site. Keep up the good work!
blog comments powered by Disqus

The real happiness of life is in doing ā€˜karma. — Rig Veda