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:
- Grab the URL of your post.
- Go to Facebook’s like button documentation and paste your URL into the box.
- Customize any settings you want.
- Push the ‘get code’ button.
- Embed that code into the end of your post (using the HTML tab if you’re working within WordPress).
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.
Latest posts by Joshua Guffey (see all)
- Search text using Regex in Chrome web browser [extension] - July 12, 2013
- Search and find an IP address match using Regex - July 12, 2013
- Stop Thunderbird from putting sent mails in inbox - March 5, 2013