22 AprHow to add a Facebook ‘like’ button to your webpages

UPDATE: This post is out of date.  Please view this post instead.

Here’s a quick and dirty tutorial on adding a Facebook ‘like’ button to your webpages. I could’ve spent more time with this post but didn’t feel it was needed given how simple the process is to add a like button.

You don’t have to get into writing PHP on your pages, you can simply copy and paste a bit of code to your page.  This works in WordPress posts as well.  Note though that if you do this on WordPress, you’ll need to publish it (or grab the permalink from the edit panel), then proceed with the instructions below.

Here’s how to do it:

  1. Grab the URL of your post.
  2. Go to Facebook’s like button documentation and paste your URL into the box.
  3. Customize any settings you want.
  4. Push the ‘get code’ button.
  5. Embed that code into the end of your post (using the HTML tab if you’re working within WordPress).

The HTML tab looks like this in case you’ve not used it:

While it certainly isn’t a perfect approach (in that it’s necessary to add the button manually to each page), it does work. I’m working on a solution to automate this process. If you know of a solution that works on WordPress, I’d love to hear about it in the comments.

For more ways to implement social media for business or just to connect, follow me on Twitter or subscribe to this blog

The following two tabs change content below.

Joshua Guffey

Project Manager at Dependable Data Services
Father. Husband. Search Marketing Professional. Conversion Optimization Consultant. Love Rumi.