August 7, 2010

Facebook Like button for your site

Filed under: WordPress — Tags: , , , , — shijitht @ 1:43 pm

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!"
colorscheme=light&amp;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;"
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. Like This!



  1. […] This post was mentioned on Twitter by Alltop Facebook, Shijith T. Shijith T said: Facebook like button: http://wp.me/pKpVe-3l […]

    Pingback by Tweets that mention Facebook Like button for site | Empty cup -- Topsy.com — August 7, 2010 @ 3:13 pm

  2. […] Facebook Like button for your site August 2010 1 comment and 4 Likes on WordPress.com 5 […]

    Pingback by 2010 in review « The Sandbox — January 2, 2011 @ 6:39 pm

  3. I’ve created a way to have the Facebook like button and the Facebook share button at the bottom of a WordPress.com post…at the same time.

    Here is the link below. Enjoy!


    Comment by Erik — February 20, 2011 @ 5:53 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: