Fb:error

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Renders a standard Facebook error message. The content within the <fb:error> tags is used as the error message text.


[edit] Attributes

RequiredNameTypeDescription
required message string The heading text to display in the error box. Alternately, you can specify the heading text using an fb:message child.
optional decoration string Customize the appearance of the error by choosing among two styles:
  • no_padding - Removes the 20 pixels of padding that surrounds the error message by default.
  • shorten - Removes the 20 pixels of padding from the bottom of the error message.


[edit] Examples

<fb:error message="Error message" />
errorsf3.png


<fb:error> <fb:message>Error message</fb:message> This is the error message text. </fb:error>
fb_error_message.jpg


[edit] Notes

The error must contain at least one fb:message child or the message attribute as the heading text.


[edit] See Also

You can see a real world example of this tag in the Who's Showing Up demo application. Go to Demos for more details and to download and install the demo apps.