Wednesday, July 6, 2011

Add facebook like button to blog

Now social network get high success . Here i am going to explain how to insert the facebook api in you blog. Facebook give more api the best one is "like" button using this user can share your blog url to friends.


<iframe id='facebook_like' src=""
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:20px"></iframe>
<script>
document.getElementById('facebook_like').src = "http://www.facebook.com/plugins/like.php?href="+ location.href;
</script>

Just copy the above code and paste in to your blog template or just create a new gadget html/javascript gadget.



No comments:

Post a Comment