Fb:req-choice

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Specifies a button to be shown at the bottom of a request on the user's requests page.


[edit] Attributes

RequiredNameTypeDescription
required url string The URL to which the button should take the user upon click. must be an absolute.
label string Specifies the text to display on this button.


[edit] Examples

<fb:req-choice url="http://apps.facebook.com/yourapp" label="Confirm" />


[edit] Notes

An Ignore button is added by default and will dismiss the request. Including Ignore as a req-choice often results[who says?][possible bug?] in the loss of all buttons. Using the same URL for multiple buttons will cause only the last button with the URL to be shown. In most cases, the URL should be either the facebook add application URL (e.g. http://www.facebook.com/add.php?api_key=FACEBOOK_API_KEY&v=1.0), or the root URL for your application (e.g. http://apps.facebook.com/yourapp).