WordPress editor allows only text in posts and sidebar. It strips off scripts(js) and rich html like iframe, forms etc while saving. WordPress did this for security. But it restricts users from using many amazing functionalities of social network as they offer. Facebook provides Like button code in iframe format and as javascript. We can’t use it in wordpress.com. Getsociallive provides a service for Like buttons. It gives a Like button. And on click, it goes to a Getsociallive page. The destination page has Like button service + Adds. It’s OK, but I thought a Facebook page will do better. So replaced the destination link of Getsociallive code with the Facebook Like service link. Resulting code for my site is
<p><a title="Like This!"href="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fshijitht.wordpress.com%2F&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0"style="border:none; overflow:hidden;width:450px; height:80px;" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;"src="http://getsocialserver.files.wordpress.com/2010/08/gslk2.png"width="49" height="23" alt="Like This!" /></a></p>
Replace shijitht.wordpress.com in the above code with your site address to make it yours. If you like, you can generate code at http://developers.facebook.com/docs/reference/plugins/like. Put the code in the text widget and add it to sidebar to get a Like button like mine.


