Reference Guide
facebook FBML Reference Guide Page 27 of 159
Check Out Application
</fb:profile-action>
</fb:else>
</fb:visible-to-user>
Notes
Use profile.setFBML to add the button to a user's profile.
If you add this to the profile of a user who has not added your application, it will appear only to those
users who have added your application. By setting the default FBML (in Edit Settings, under My
Applications) to include an fb:profile-action, this action appears on every profile the user of your
application sees.
There is a limit of about 30 characters in the action label. (Note: Leading and trailing white-space counts
against this limit, so if your link is being elided, check for and remove any extra spaces between the tags
and the label text.)
For users for whom you have not called profile.setFBML, the actions are read from the content in
"Default FBML" section of your application settings. For the most part, this applies to any user who has
not added your application.
For users for whom you have called profile.setFBML, the actions are read from whatever content you
set when you last called profile.setFBML for that user.
Example: There are three friends -- Larry, Curly and Moe. Both Larry and Curly add your application.
When Larry views Curly’s profile, the profile actions that Larry sees on Curly’s profile come from the
content you posted to Curly’s profile. When Larry views Moe’s profile, the profile actions Larry sees on
Moe’s profile come from the default FBML content, because you haven’t called profile.setFBML on
Moe, because you don’t necessarily know he exists
See Also
You can see a real world example of this tag in the Footprints demo application. Go to Demos for more
details and to download and install the demo apps.
Application Visibility in Profiles
Errors
fb:profile-action: Required fbml_env var missing: "profile"
- If you get this error, it means you tried to use the fb:visible-to-owner, fb:visible-to-app-users, and the other
fb:visible-to-*** elements on a Canvas page.
fb:if-is-own-profile
- Not allowed in profile. Use fb:visible-to-owner, fb:visible-to-app-users, and the other fb:visible-to-***
elements instead.
running example above through the [Facebook FBML validator] returns
- RUNTIME ERROR: fb:if-is-own-profile: "ifs" are not allowed in flavor ProfileBoxFBMLFlavor
--719255867 11:05, 19 November 2007 (PST)
Most punctuation is stripped from the profiles box.
Can someone write a working example that reproduces this behavior WITHOUT if-tags?
www.yapish.com










