Name
<fb:success/>
Synopsis
<fb:success>...[<fb:message>...</fb:message>]</fb:success>
Renders a standard Facebook success message. This message appears in a standard pink box.
FBML-Specific Attributes
Required
message=[string] default: noneThe explanation message heading to display in the success box. Optionally, you can use an <fb:message/> internally to specify the success heading.
Optional
decoration=[no_padding|shorten] default: noneModifies the appearance of the success box.
no_paddingremoves the 20 pixels of padding that surrounds the success box, andshortenremoves the 20 pixels of padding below the success message.
Example FBML[5]
Here is example FBML code for
<fb:success/> by itself (using the
message attribute):
<fb:success message="Congratulations! You pressed the green button."/>
And here is example FBML code for
<fb:success/> with an
<fb:message/> tag embedded:
<fb:success> Congratulations! You pressed the green button.
<fb:message> Congratulations! </fb:message> </fb:success>Rendered HTML for Single Instance of Tag
The rendered HTML for the first example looks like this (Figure 3-6 shows the resulting success message):
<div class="standard_message has_padding"><h1 class="status">
Congratulations! You pressed the green button. </h1></div>Figure 3-6. The <fb:success/> tag by itself
The rendered HTML for the second example looks like this (Figure 3-7 shows the resulting success message): ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access