Fb:tab-item

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

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


[edit] 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.)


[edit] 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


[edit] 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.