Fb:error

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

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

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.

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

Notes

  • The error must contain at least one fb:message child or the message attribute as the heading text.
  • You can center the text of the messages by adding this CSS:
.standard_message, .standard_message p { text-align:center; }
reference