<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.
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.
Here is example FBML code for the
<fb:add-section-button/>
tag:
<fb:add-section-button section="profile"/>
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.
52.15.55.18