Fb:if-section-not-added
From Facebook Developer Wiki
Contents |
Description
Renders the content wrapped within this tag on an application canvas page if the user hasn't added a condensed profile box or info section to her profile. Use this to encourage your users to add a box or info section to their profiles.
If the user already has a condensed profile box or an info section from the application, then nothing appears on that application's canvas page for this tag.
The content cannot be more than 100 pixels in height.
Attributes
| Required | Name | Type | Description | |
| required | section | string | Specifies which section to check (profile to check for a condensed profile box in the narrow column on the Wall and Info tabs or a box in either column on the Boxes tab, or info to check for an application info section to the Info tab). |
|---|
Examples
<fb:if-section-not-added section="profile">
Display our box on your profile!<br />
<fb:add-section-button section="profile" />
</fb:if-section-not-added>
Notes
- You cannot use fb:else with this tag. This is to prevent the gating of application functionality if a user hasn't added an application info section.
- Contents of this tag are limited to a maximum height of 100 pixels. Facebook enforces this by wrapping the tag in a div with a style of "max-height:100px; overflow:hidden"
