Fb:dashboard

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Renders a standard Facebook dashboard header.

Dashboards can contain the following elements:


[edit] Examples

<fb:dashboard></fb:dashboard>
Image:FBML_dashboard.jpg


[edit] Notes

  • For an application with an icon, the icon appears next to the application title.
  • You cannot include tags like fb:if-user-has-added-app inside a dashboard. You can do the equivalent as illustrated below to create a dashboard that determines when a user has or has not added an application. This snippet mixes in Smarty code. While you can refactor this code, the detail is included for those unfamiliar with Smarty.
<fb:if-user-has-added-app> {if $isOwnSchedule == 'true'} <fb:dashboard> {include file='header-actions-internal.tpl'} </fb:dashboard> <fb:else> <fb:dashboard> {include file='header-actions-internal.tpl'} <fb:action href="http://apps.facebook.com/add.php?api_key=">Add this app</fb:action> </fb:dashboard> {else} <fb:dashboard> {include file='header-actions-external.tpl'} </fb:dashboard> <fb:else> <fb:dashboard> {include file='header-actions-external.tpl'} <fb:action href="http://apps.facebook.com/add.php?api_key=">Add this app</fb:action> </fb:dashboard> {/if} </fb:else> </fb:if-user-has-added-app>


[edit] See Also

You can see a real world example of this tag in the Restaurants demo application. Go to Demos for more details and to download and install the demo apps. See also fb:tabs for other examples of standard navigation.

Navigation