| FBML has been deprecated. Starting June 1, 2012 FBML apps will no longer work as all FBML endpoints will be removed. If you are building a new application on Facebook.com, please implement your application using HTML, JavaScript and CSS. You can use our JavaScript SDK and Social Plugins to embedded many of the same social features available in FBML. |
Renders a button that lets a user add your application or site's application tab to his or her profile. Make sure you specify a Tab Name and a Tab URL in your application settings (on the Profiles tab), or else the button will load an error dialog.
If the user already added your application tab, the button doesn't appear.
You can determine if a user added your application tab by querying the tab_added field in the permissions FQL table.
| Name | Type | Description |
|---|---|---|
| type | string | XFBML only. Specify |
If you're formatting the tag as FBML, you don't need to use a closing tag.
<fb:add-profile-tab />
If you're formatting the tag as XFBML, you must use a closing tag.
<fb:add-profile-tab type="off-facebook"></fb:add-profile-tab>