Technott
  • Home
  • Featured
  • Software
  • Gadgets
  • Hacks
  • Security
  • Facebook
  • Google
  • Open Source
  • Apple

Add Facebook Like button to your WordPress or blogger blog

Apr23
2010
5 Comments Written by Sudip Kafle


Facebook likeFacebook has introduced the Like button which can be posted on blogs and websites. When the visitors clicks on it, Facebook posts the message on their Facebook profile saying “He likes this(link)”. This button enables to like the post and also display how many visitors have liked it. If you are already logged on to Facebook, it displays the name of friends who like the post. Here’s how it looks on your blog:

Facebook like

Facebook Like button displayed on post

Facebook Like button

Link Displayed on Facebook Profile after clicking like

Here’s how you can add Facebook Like button to your Blog:

1) For WordPress Blog:

Just copy and paste the following code to single.php of your WordPress blog to display the like button on your posts.

2) Add Facebook Like button on your blogger blog:

For Modern Templates: Inside the Edit HTML find the following line:

<div class=’post-footer-line post-footer-line-1′>

And then paste the code below the following code:

<iframe
   allowTransparency='true'
   frameborder='0'
   scrolling='no'
   expr:src='"http://www.facebook.com/plugins/like.php?href="
             + data:post.url
             + "&amp;layout=standard&amp;show-faces=true&amp;"
             + "width=530&amp;height=60&amp;action=like&amp;"
             + "colorscheme=light"'
   style='border:none; overflow:hidden; width:530px; height:60px'/>

For Classic Templates, copy the following code:

[Via] Digital Inspiration

Posted in Facebook, Web
← LinkedIn comes with New Link-Sharing features
Hackers make Android to run with iPhone →
  • http://www.tech.aakarpost.com Aakar

    Nice info, but your code is not working in blogger. Inverted comma ( ‘ ) should be corrected.
    :)

  • http://www.tech.aakarpost.com Aakar

    Nice info, but your code is not working in blogger. Inverted comma ( ‘ ) should be corrected.
    :)

  • http://technott.com sudip kafle

    @aakar Thanks for the correction. I think its now ok

  • sudip

    @aakar Thanks for the correction. I think its now ok

  • Dxganesh

    great info !! thanks for sharing!!!


Follow @thetechnott

TECH TIPS & NEWS VIA EMAIL

Recent Posts

  • Ubuntu 12.04 LTS Arrives
  • Google’s thought of ‘Project Glass’ can change the world
  • Visual Studio 11 Beta Is Now Released: Gets A New Interface
  • Download Windows 8 Consumer Preview ISO images
  • Google Celebrates Leap Year 2012 With Gioachino Rossini’s Birthday Doodle
  • Apple announces iPad 3 event for March 7
  • Gnome 3.4 First Beta released
  • Review: Droid Razr Maxx, Android 4.0 Smartphone
  • Win $ 10,000 Gift card by downloading 25billionth app on Apple app store
  • Windows 8 will have native support to Skydrive

Recent comments

  • Niran Maharjan on Ubuntu 12.04 LTS Arrives
  • Beyond Computers Pvt. Ltd. on Ubuntu 12.04 LTS Arrives
  • Muhammadharisjan on Make your FIFA World Cup 2010 Jersey via Facebook
  • Ludagraham on Fix microphone problem in Gmail Voice call
  • PurpleDaisy13 on Galaxy tab 2 VS iPad 2 a comparison

About Technott

Technott is a blog on Web and Tech. Our articles focus on Digital World, Hardware & Softwares, Blogging, Linux, Mobile phones and so on. More
  • About Technott
  • Twitter -@thetechnott
  • Email - thetechnott @ gmail
  • Contact us
  • Advertise

EvoLve theme by Theme4Press  •  Powered by WordPress Technott
Information and Technology blog