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

Get Facebook Application Development with Graph API Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.