Name
<fb:name/>
Synopsis
<fb:name uid="..."/>
Renders the name of the specified user. With various attributes you can customize how that name is displayed.
FBML-Specific Attributes
Required
uid=[string|loggedinuser|profileowner]The ID of the user whose name you would like to display.
loggedinuserdisplays the name of the user viewing the profile, whereasprofileownercan be used to display the name of the owner of the profile being viewed.
Optional
firstnameonly=[true|false] default: falseIf
true, displays just the first name of the user.linked=[true|false] default: trueIf
true, links the name to the listed user’s profile.lastnameonly=[true|false] default: trueIf
true, displays just the last name of the user.possessive=[true|false] default: falseIf
true, makes the name possessive (adds ’s to the name, turning Jesse into Jesse’s).reflexive=[true|false] default: falseIf
true, anduseyouistrue, turns the pronoun “you” into “yourself.”shownetwork=[true|false] default: falseIf
true, and an actual Facebook ID other thanprofileownerorloggedinuseris used, the name will display the user’s network in parentheses to the right of the name (see the example for this tag).useyou=[true|false] default: trueIf
true, and the profile owner is the same as the logged-in user, displays “you” as the user’s name.ifcantsee=[string] default:empty stringSpecifies text to display in case a user viewing the current user’s profile or canvas page doesn’t have permission to see the user’s name.
capitalize=[true|false] ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access