Reference Guide
facebook FBML Reference Guide Page 26 of 159
Fb:profile-action
Description
Renders a link on the user's profile under their photo (such as "View More photos of..").
Attributes
Required Name Type Description
required url
string
The URL to which the user is taken after clicking. Must be an absolute link.
Examples
<fb:profile-action url="http://www.mysite.com/action/">
Perform Action
</fb:profile-action>
NOTE: 'if-is-own-profile' deprecated! See that function for details
<fb:if-is-own-profile>
<fb:profile-action url="http://apps.facebook.com/myapplication/status/">
View Your Status
</fb:profile-action>
<fb:else>
<fb:if-is-app-user uid="profileowner">
<fb:profile-action url="http://apps.facebook.com/myapplication/status/">
View this person's status
</fb:profile-action>
<fb:else>
<fb:profile-action url="http://apps.facebook.com/myapplication/invite/">
Invite this person to MyApplication
</fb:profile-action>
</fb:else>
</fb:if-is-app-user>
</fb:else>
</fb:if-is-own-profile>
NOTE: example with fb:visible-to-user instead of the deprecated fb:if-is-own-profile
<fb:visible-to-user uid="loggedinuser">
<fb:profile-action url="http://apps.facebook.com/application/my_page">
View Your Application
</fb:profile-action>
<fb:else>
<fb:profile-action url="http://apps.facebook.com/application/">
www.yapish.com