• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About
  • Projects
    • GStaticMap WP Plugin
  • Contact
  • Privacy Policy

Lorenz Blog

All About Web & Mobile Application Development

  • Featured Articles
  • Gadgets
    • Android
    • Blackberry
  • Programming
    • Android
    • PHP
    • Java Script
    • MySQL
    • Postgresql
    • Flex
    • Web
  • Software
    • Mac OS
    • Windows
    • Linux
  • Web
You are Here » Home >> Information Technology >> Programming >> Web >> How to Enable Facebook Like Button on a Web Page Using AddThis

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

May 5, 2010 by Lorensius Londa 10 Comments

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

HTML

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="http://addthis.com/bookmark.php?v=250" 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>
</div>

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="http://s7.addthis.com/js/250/addthis_widget.js#username=YOUR-ACCOUNT-ID"></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

Facebooktwitterredditpinterestlinkedinmailby feather

Related posts:

  1. How to Use Facebook SDK to Post Status From Android
  2. How to Create Facebook Application with PHP for Beginner
  3. How to Enable Theme in Google Apps
  4. How to Enable Multitouch on Samsung Spica

Filed Under: Information Technology, Web Tagged With: addthis, addthis button, facebook like, facebook like button, like button, wordpress

About Lorensius Londa

Passionate web and mobile application developer. Co-founder of TRUSTUDIO, loves programming, Android, aviation, travelling, photography, coffee and gym mania.

Reader Interactions

Comments

  1. Mephi says

    June 29, 2010 at 6:27 pm

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

    Reply
    • lorenz says

      June 29, 2010 at 7:16 pm

      Yes it is legal, feel free to use it 🙂

      Reply
  2. Suhani says

    March 28, 2011 at 4:58 pm

    I want to change the facebook like button to a thumb up image can you help how to do this?

    Reply
  3. Noor says

    August 15, 2012 at 12:53 pm

    Hi Lorenz,
    This is what i am searching for. Very helpful. Thanks so much.

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

About Me

A husband, father of two, passionate software developer, diy lover and home baker who loves to learn new things. Read More…

  • Facebook
  • GitHub
  • Google+
  • Instagram
  • Twitter
  • YouTube

Featured Articles

How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Blue Bamboo P25 Printer Android Demo Application With Source Code

Simple JSON RPC Client for Android

How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP

Footer

Recent Comments

  • Aditya Dabas on About
  • Ayten Göksenin Barutçu on How to Make Android Map Scrollable Inside a ScrollView Layout
  • mang jojot on About
  • Hussain on How to Programmatically Scan or Discover Android Bluetooth Devices

Recent Posts

  • How to Fix Blank Screen on WordPress Add/Edit Post Page
  • How to Programmatically Restart the ESP32 Board
  • How to Get Hardware Info of ESP32
  • How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Latest Tweets

To protect our users from spam and other malicious activity, this account is temporarily locked. Please log in to https://twitter.com to unlock your account.

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in