@shijitht

Facebook Like button for your site

with 3 comments

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&amp;layout=standard&amp;
show_faces=true&amp;width=450&amp;action=like&amp;
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;"
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. Like This!

Advertisement

Written by shijitht

August 7, 2010 at 1:43 pm

Posted in WordPress

Tagged with , , , ,

3 Responses

Subscribe to comments with RSS.

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

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

  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!

    http://en.forums.wordpress.com/topic/its-possible-facebook-share-and-like-buttonsat-the-same-time?replies=61

    Erik

    February 20, 2011 at 5:53 am


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 )

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

Follow

Get every new post delivered to your Inbox.