I want tabs in my app just like I see all over Facebook. Tabs are the greatest! Tabs! Tabs! Tabs!
Woah! Easy there. Tabs are pretty great, especially when they’re as simple as this:
<fb:tabs> <fb:tab-item href="http://apps.facebook.com/myapp/some.php" title="First Tab!" selected="true"/> <fb:tab-item href="http://apps.facebook.com/myapp/page.php" title="Second Tab!" /> </fb:tabs>
which will give you Figure 6-29.
Figure 6-29. Easy tabs with fb:tabs
You can have as many tabs as you’d like, but note that they’ll
either get cut off on the right edge of the Canvas or wrap around onto
additional lines with somewhat unpredictable results. Each
fb:tab-item must have an absolute
title, and can optionally have
right; see Figure 6-30) and
false) parameters. Setting more than one tab
selected will highlight only
the first tab.
Figure 6-30. fb:tab-items with align left and right