Fb:tab-item

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Renders a standard Facebook tab. Must always be a child of fb:tabs.

Attributes

RequiredNameTypeDescription
required href string The URL to which the link should take the user upon click. must be absolute
title string Specifies the text to display on the tab.
optional align string Specify alignment for this tab item. (Default value is left.). Other valid value is right
selected bool Indicates whether this tab item has the selected state. (Default value is false.)

Examples

<fb:tabs> <fb:tab-item href="myphotos.php" title="My Photos" /> <fb:tab-item href="recent.php" title="Recent Albums" /> </fb:tabs>
Image:FBML_tab_item.jpg


<fb:tabs> <fb:tab-item href="myphotos.php" title="My Photos" selected="true"/> <fb:tab-item href="recent.php" title="Recent Albums" /> </fb:tabs>
Image:FBML_tab_item2.jpg


<fb:tabs> <fb:tab-item href="myphotos.php" title="My Photos" align="right"/> <fb:tab-item href="recent.php" title="Recent Albums" align="right"/> </fb:tabs>
Image:FBML_tab_item3.jpg

Notes

  • fb:tabs and fb:tab-item do not render correctly within the FBML Test Console
  • Dynamic FBML, clicktohide, clicktoshow, etc., does not work with this FBML tag.
reference