Name

<fb:add-section-button/>

Synopsis

<fb:add-section-button "..."/>

Renders an “Add to Profile” or “Add to Info” button on an application’s canvas page. After calling profile.setFBML or profile.setInfo on your app, this button allows you to add a profile box or additional information to the main profile area, to the “Boxes” tab, or to the “Info” tab. Where it appears partly depends on how you call profile.setFBML: if the profile_main parameter is set, it will appear on the main profile section of the user’s profile; if not, it will appear under the “Boxes” tab. Where it appears also depends on the section you specify. If you specify a section of “Info,” the information you set in the profile.setInfo API call will be sent to the user’s “Info” tab. When you have called this once for the given section type, the button will no longer appear for that section type until the user removes it from his profile.

Warning

It is important to note that this tag is still under development at the time of this writing, so the way it works may change by the time you read this. Please refer to http://wiki.developers.facebook.com/index.php/New_Design_Narrow_Boxes and also to http://wiki.developers.facebook.com/index.php/Fb:add-section-button for more information about this tag. I will update this book’s Facebook Page when this tag is updated.

FBML-Specific Attributes

Required

section=[profile|info] default: none

The section in which to place the content specified in the profile.setInfo or profile.setFBML API calls.

Optional

None.

Example FBML

Here is example FBML code for the <fb:add-section-button/> tag:

<fb:add-section-button section="profile"/>

Rendered HTML for Single Instance of Tag

Assuming the user has not already clicked on the button for the profile section, the example FBML will render something that looks like Figure 3-50.

The “Add to Profile” button
Figure 3-50. The “Add to Profile” button

Additional Information

  • This tag works only on canvas pages.

  • This tag is a work in progress at the time of this writing. Please refer to this book’s Facebook Page to make sure you have the most up-to-date information.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.55.18