Facebook Request Dialog is used to invite friends to start using an application, or to send request 
                                    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. 
                                    For this example shown PHP code is used for making a default request dialog with defined message and
                                    CSS class.
                                    <br /><br />
                                    For all details about the control, with descriptions of all optional properties, please visit 
                                    <b><a href="http://faceconn.com/facebook-request-dialog-php">Facebook Request Dialog Tutorial</a></b>.
                                    <br /><br />
                                    </p>
                                    
                                    <?php 
// check facebook session
include 'SessionCheck.php';
// create instance of request dialog cotrols
$request = new RequestDialog();
// set message
$request->SetMessage("Try Facebook Connect PHP Toolkit");
// Optional: set css class of publish button
$request->SetCssClass("facebookbutton");
// render the control on the page
$request->Render();
// render the control on the page
echo "<br /><br />";
include 'CodeExamples/RequestDialogExample.php';
?>
                                </td>
                            </tr>
                        </table>
                    </form>
                </td>
Esempio n. 2
0
                                         <h1 style="font-size:18px">Facebook Request Dialog</h1>

                                       <p style="text-align: justify">
                                        Facebook Request Dialog is used to invite friends to start using an application, or to send request 
                                        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>