One of the amazing features of Facebook is to search for people and make them friends. We can directly use Facebook Friends Dialog, if we want to add someone as a friend. It provides us with an elegant interface where we can send a friend request to someone just with a mouse click.
You should have setup
index.php, as explained in the beginning of the chapter.
The following steps will demonstrate how to use Dialog to add friends:
index.phpand add the following highlighted code inside the div
<div id="fb-root"> <input type="button" id="launch" value="Launch" /><br /> </div>