Fb:if

From Facebook Developer Wiki

Revision as of 23:42, 29 July 2009 by Pete Bratach (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Description

Only renders the content inside the tag if value tag is set to true. Use this tag with fb:else.

Important: You should use this tag to gate elements in your application that already are privacy-controlled. Do not use this tag to gate content like rendered user data, as a savvy user can view the source and see what's hidden.

Attributes

RequiredNameTypeDescription
optional value bool Displays content if true. (Default value is false.)

Examples

<fb:if value="true">Show this content.</fb:if>
reference