Fb:request-form-submit

From Facebook Developer Wiki

Jump to: navigation, search

Description

Creates a button that submits an fb:request-form. Use this along with any combination of fb:multi-friend-input or fb:friend-selector tags inside an fb:request-form if you would like to have the user send a request or invitation. When this button is clicked, a confirmation dialog appears that allows the user to confirm the sending of the request or invitations.

You can also use a single user ID as the label for the button. This means that instead of using other elements in the fb:request-form, the button results in a request being sent to the user that you specify for the label.

Note: When using a user ID as the button label, the user ID must belong to a friend of the current user. Using either the user ID of the current user or a user ID that does not belong to a friend of the current user results in a dialog with a message of "Please select some friends first" when the button is clicked. (see bug)


Attributes

RequiredNameTypeDescription
optional uid int Set this to the user ID of a person you would like a request to be sent to.
label string If you are using uid, use this tag to specify the text you want to appear as the label for the button. The text must include "%n" or "%N" which gets replaced with the first name or full name for the user ID, respectively.


Examples

<fb:request-form-submit />
reference