Skip to main content

How to add Facebook Like button to Blogger, Wordpress and websites

Recently Facebook launched the Like button for the web that enables users to share a page directly on Facebook. As a blogger or webmaster you wouldn’t want to miss the opportunity of getting your site and posts shared among Facebook users. This is how to add the button to your websites.

Go to Facebook Like Button page. Before you type in the URL, use the various settings to adjust the look of the button. The default button is the best one, the only thing you might want to adjust is the width.

Wordpress

For Wordpress blogs, type php_the_permalink in “URL to like” box. Click on “Get Code” to receive the code.

facebook-like-button

Now embed the code in your Wordpress theme single.php file.

Blogger

Blogger users will have to enter post.url in the “URL to like” box to get the code.

Open Blogger Dashboard and click on Layout. Now click Edit HTML.

Check the box “Expand Widget Templates” and locate the following item in the template: <p><data:post.body/></p>

Now add the Facebook Like Button code either above or below this item.

Other websites

For static pages, simply type the URL of the page and embed it on that page. Repeat this for every page where you want to implement the code, each time generating a new code for the given page.

Comments

  1. Here's a Facebook Like button plugin available from Wordpress:
    http://wordpress.org/extend/plugins/like
    No coding necessary, you can customize the look and placement of the button in the settings interface

    ReplyDelete
  2. This post is helpful. Thank you.

    ReplyDelete
  3. Nope. Not working. I instantly went from 0 people recommend to more than 17,000 which is an error.

    ReplyDelete
  4. are you sure "enter in the “URL to like” box to get the code."

    error~~

    ReplyDelete
  5. nice post . . .I try it on my blog. . . it work. . .

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Record CPU and Memory Usage Over Time in Windows?

Whenever the computer is lagging or some application is taking too long to respond, we usually fire up task manager and look under the Performance tab or under Processes to check on processor utilization or the amount of free memory available. The task manager is ideal for real-time analysis of CPU and memory utilization. It even displays a short history of CPU utilization in the form of a graph. You get a small time-window, about 30 seconds or so, depending on how large the viewing area is.

How to Schedule Changes to Your Facebook Page Cover Photo

Facebook’s current layout, the so called Timeline, features a prominent, large cover photo that some people are using in a lot of different creative ways. Timeline is also available for Facebook Pages that people can use to promote their website or business or event. Although you can change the cover photo as often as you like, it’s meant to be static – something which you design and leave it for at least a few weeks or months like a redesigned website. However, there are times when you may want to change the cover photo frequently and periodically to match event dates or some special promotion that you are running or plan to run. So, here is how you can do that.

Diagram 101: Different Types of Diagrams and When To Use Them

Diagrams are a great way to visualize information and convey meaning. The problem is that there’s too many different types of diagrams, so it can be hard to know which ones you should use in any given situation. To help you out, we’ve created this diagram that lays out the 7 most common types of diagrams and when they’re best used: