示例#1
0
                                        for some specific action to application users. It is implemented as button and link on which user has
                                        to click to open the request dialog. There is also an option to open it automatically on page load. 
                                        <br /><br />
                                        For all details about the control, with descriptions of all optional properties, please visit:<br />
                                        <b><a href="http://faceconn.com/facebook-request-dialog-php">Facebook Request Dialog Tutorial</a></b>.
                                        <br /><br />
                                        </p>

                                        <?php 
// create instance of request dialog cotrols
$request = new RequestDialog();
// set message
$request->SetMessage("Faceconn toolkit is a set of PHP classes used to provide an easy and fast way to integrate the most common Facebook UI features using the pure PHP code for development of Facebook Connect websites, Facebook Canvas apps and Facebook Page apps.");
// Optional: set css class of publish button
$request->SetCssClass("faceconn_button");
$request->SetCssStyle("width:170px");
// Optional: set form to submit
$request->SetOnSendRequestSubmitForm("form1");
// render the control on the page
$request->Render();
if (isset($_GET["invitedFriends"])) {
    echo "<br /><br />Invited Friends IDs = " . $_GET["invitedFriends"];
}
?>
                                        <br /><br />
                                    </div>
                                </form>
                                <br />
                                <?php 
include 'SessionCheck.php';
?>