O'Reilly logo

Facebook Application Development with Graph API Cookbook by Apeksha Singh, Shashwat Srivastava

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the Like button on your web page

One of the most frequently used and famous social plugins of Facebook is the Like button. With the Like button, Facebook helps the third-party application developers and websites to interact with the Facebook platform, share content, and get the advantage of its large user base. Here, we will learn how to integrate the Like button with our website.

How to do it...

The following steps will demonstrate how to set up a Like button on your web page:

  1. Open the page of your website, where you want the Like button to be placed, and copy the following code:
    <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fpacktpub.com&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required