How to Add Facebook Like Button to Your Website?

by: - Last updated on: December 17th, 2016


Facebook has just unleashed the Like buttons for the whole web. They are the same Like buttons which you used to see on Facebook, which will now be seen on various websites very soon.

If you are a webmaster, you might be interested in implementing this on your blog/website right away, since it lets users to share something they find interesting on your website on click of a button.

How to Add Facebook Like Button on Wordpress Blogs?

Implementing Facebook’s Like button on your Wordpress blog is fairly straight-forward. Just visit the Facebook developer page where you can customize the Like button as per your need and get the code. For the URL, key in php_the_permalink as shown below.


Update: If you get an error, use php echo urlencode(get_permalink($post->ID)); in place of php_the_permalink

In case you are on Blogger or any other platform, just replace the php_the_permalink part with the permalink code of your system.

Weekly Newsletter

Sign up for a specially curated Tech Newsletter.


Leave a Reply

Your email address will not be published. Required fields are marked *

  1. we’re trying to implement this on our website, but for some reason when we go to the app page on facebook, it’s not recording any ‘likes’ in the back end data (i.e a blog post might have 10 likes, but it’s showing as 0 overall on the dev application). i have a feeling we’re missing something really obvious. can anyone shed some light on this?!

  2. Same issue as Sarah. Have liked a couple of pages but not showing on either News feed or profile. No errors are shown and an incremental like score appears on the liked page button.