Facebook Cookbook - Jay Goldman [88]
will give you Figure 6-53.
Figure 6-53. fb:dialog-content with a form
NOTE
You can take advantage of Facebook’s Mock Ajax to do form submission and return from inside of your fb:dialog. See Dialogs with Ajax for more information.
The fb:dialog-title tag needs no further explanation, other than to note that you can format the content with HTML tags such as strong and em, and by applying CSS:
I Scream! You Scream! We All Scream!
The fb:dialog-button tag, on the other hand, does need some explanation because it has a few optional parameters, listed in Table 6-20.
Table 6-20. Parameters for fb:dialog-button
Name
Type
Default value
Description
type
string
N/A
The type of button to render. Can be either button for a generic button or submit for a form submitter (make sure to include a form_id for a submit button). This is required.
value
string
N/A
The text to put on the button. This is required.
close_dialog
bool
false
Specifying true will close the dialog when this button is clicked.
href
string
N/A
The URL to take users to when they click on the button. Can be external to Facebook.
form_id
string
N/A
If this button submits a form, you need to specify the form’s id here (e.g.,