If we want to publish a story or news piece on the wall of the current user by using an already built interface, we can do so with the help of Facebook Dialogs. It provides us with a ready to use interface which can be displayed to the user and finally used to publish any post.
You should have created
index.php as mentioned in the beginning of this chapter.
The following steps will demonstrate how to publish a story:
index.phpand add the following highlighted code inside the div named
<div id="fb-root"> <input type="button" id="launch" value="Launch" /><br /> </div>
window.fbAsyncInit, just ...