Name

<fb:explanation/>

Synopsis

<fb:explanation>...[<fb:message>...</fb:message>]</fb:explanation>

Renders a standard Facebook explanation message. This message appears in a standard gray box.

FBML-Specific Attributes

Required

message=[string] default: none

The explanation message heading to display in the explanation box. Optionally, you can use an <fb:message/> internally to specify the explanation heading.

Optional

decoration=[no_padding|shorten] default: none

Modifies the appearance of the explanation box. no_padding removes the 20 pixels of padding that surrounds the explanation box, and shorten removes the 20 pixels of padding below the explanation message.

Example FBML[4]

Here is example FBML code for <fb:explanation/> by itself (using the message attribute):

<fb:explanation message="This is why you shouldn't have pushed the button."/>

And here is example FBML code for <fb:explanation/> with an <fb:message/> tag embedded:

<fb:explanation> This is why you shouldn't have pushed the button. 
    <fb:message> We told you! </fb:message> </fb:explanation>

Rendered HTML for Single Instance of Tag

The rendered HTML for the first example looks like this (Figure 3-4 shows the result):

<div class="standard_message has_padding"><h1 class="explanation_note">
    This is why you shouldn&#039;t have pushed the button. </h1></div>
The <fb:explanation/> tag by itself
Figure 3-4. The <fb:explanation/> tag by itself

The rendered HTML for the second example looks like this (Figure 3-5 shows the result):

<div class="standard_message has_padding"><h1 class="explanation_note"> 
    We told you! <p> This is why you shouldn't have pushed the button. 
    </p> </h1></div>
The <fb:explanation/> tag when used with <fb:message/>
Figure 3-5. The <fb:explanation/> tag when used with <fb:message/>

Additional Information

  • The <fb:explanation/> tag must contain one <fb:message/> tag or one message attribute to specify the explanation heading text.

  • The content for the explanation is optional.



[4] You can see this example in action at http://apps.facebook.com/fbmlessentials/?action=explanation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.254.151