To add the button to your site go to http://developers.facebook.com/docs/reference/plugins/like and grab the html and insert it into your blog template. The html snippet looks like this
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?href=[InsertYourUrlHere]&layout=standard&show_faces=true& width=450&action=like&colorscheme=light" style="border: none; height: px; overflow: hidden; width: 450px;"></iframe>
What you should do is insert your sites url where is says [InsertYourUrlHere]. If you know how to get your posts url dynamically by inserting a tag instead this is prefered. This will mean that the "like" link that shows up in peoples Facebook stream will link directly to your blog post and not just to your blog's frontpage.
This is how it looks in Blogger which is the blogging platform I use
<iframe src="http://www.facebook.com/plugins/like.php?href=<$BlogItemPermalinkURL$>&layout=standard&show_faces=true& width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:24px"></iframe>
Hope this helps and let me know if this was useful by clicking the "I Like" link :-)
No comments:
Post a Comment