How to Enable Facebook Like Button on a Web Page Using AddThis

AddThis has released their support  for the Facebook Like button within the AddThis sharing platform. To enable this feature into your website just copy and paste the two code sections below into your HTML page.

Addthis Facebook like button

Addthis Facebook like button


Put the code below to where you like the button to appear on your page. For WordPress user, put the code on single.php and page.php

<div class="addthis_toolbox addthis_default_style">
    <a href="" class="addthis_button_compact">Share</a>
    <span class="addthis_separator"> </span>
    <a class="addthis_button_facebook"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_googlebuzz"></a>
    <a class="addthis_button_email"></a>
    <span class="addthis_separator"> </span>
    <a class="addthis_button_facebook_like"></a>

Java Script

Put the code below before the closing </body> tag. For WordPress user, put the code on footer.php file.

<script type="text/javascript" src=""></script>

YOUR-ACCOUNT-ID is your account id on Addthis, use #username=YOUR-ACCOUNT-ID if  you want to collect analytcs data about your account or just remove it if you don’t want analityc data.

View demo

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather


  1. Mephi says

    Hey thanks for this but is this legal to use? we need this to get fans for our organ pledging page on facebook. thanks!

Leave a Reply

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