Fb:req-choice

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Facebook will deprecate this tag in late 2009/early 2010.

You can send requests and invites through Inbox. For more information, please read the Developer Roadmap.

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

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.

Examples

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


How to embed other FBML tags and tokenized text within req-choice's label attribute

<fb:req-choice url="..."> <fb:fbml-attribute name="label"> <fb:intl>Join <fb:name uid="12345" possessive="true"/> guild !</fb:intl> </fb:fbml-attribute> </fb:req-choice>

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).

reference