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

Integrating the Send button using XFBML

Facebook has recently launched the Send button for its users. This allows them to send messages and information to a few selected friends of theirs. The messages and feed, along with the URL, are directly sent to their friend's inbox. There are two ways to render a Send button. One is along with the Like button, and the other is to have a stand-alone Send button. Let us see how to integrate the Send button to our web page.

Getting ready

You should have set up index.php, as explained in the beginning of Chapter 4.

How to do it...

We will first look at integrating the Send button with a Like button.

Integrating the Send button with the Like button

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