Home
Login Button
Custom Login Button
Permissions
Request Dialog
Invite Friends
Stream Publish
Like Button
Send Button
Like Box
Comment Box
Bookmark Button
Recommendations
Data Access
Logout Button

Facebook Request Dialog

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.

For all details about the control, with descriptions of all optional properties, please visit Facebook Request Dialog Tutorial.


Facebook session is not established. Please login by pressing login button:



// 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();