Fb:if

From Facebook Developer Wiki

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>