Fb:action
From Facebook Developer Wiki
Contents |
Description
Renders a link, usually for navigational purposes. Its appearance depends on its container.
The tag must be a child of either fb:dashboard or fb:subtitle.
Attributes
| Required | Name | Type | Description | |
| required | href | string | The URL for the link. The URL must be a canvas page. For example, href="http://apps.facebook.com/<appname>/<filename>.php". | |
|---|---|---|---|---|
| optional | onclick | string | Call a FBJS function |
Examples
<fb:dashboard>
<fb:action href="new.php">Create a new photo album</fb:action>
</fb:dashboard>
![]() |
<fb:dashboard>
<fb:action href="new.php">Create a new photo album</fb:action>
<fb:action href="you.php">Photos of You</fb:action>
</fb:dashboard>
|
Notes
- The link appears in the top left of the
fb:dashboardelement and the top right of thefb:subtitleelement. You cannot use FBJS onclick, since you cannot have theYou can use thehrefattribute set to#orjavascript:.onclickattribute: use any absolute URL in thehrefand make sureonclickreturnsfalseto prevent the link from being followed.


