Fb:create-button

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Renders a Create button for adding user-generated content. This tag must be a child of fb:dashboard.

Attributes

RequiredNameTypeDescription
required href string The URL where the link for the button takes the user. The URL must be a canvas page or fragment url (# and following string). For example, href="http://apps.facebook.com/<appname>/new.php".
optional onclick string Calls an FBJS function when a user clicks the button. When using an onclick action the href can be a fragment url to prevent page reloads.

Examples

<fb:dashboard> <fb:create-button href="http://apps.facebook.com/<appname>/new.php">Create a new photo album</fb:create-button> </fb:dashboard>
Image:FBML_create_button.jpg

Notes

  • This button appears in the top right of the fb:dashboard element, next to the application title.
  • Each page can contain only one Create button.
  • The (+) symbol appears on all buttons and cannot be altered.
  • If you try to add more than one create button, only the last one will appear.
reference