Fb:pronoun

From Facebook Developer Wiki

Jump to: navigation, search

Description

Renders a pronoun for a specific user. If you include no additional parameters, then you is displayed if the user with uid is viewing the page. If another user is the viewer, then he or she is displayed if the gender is known; otherwise, they is displayed.

Attributes

RequiredNameTypeDescription
required uid int The user ID for whom to generate the pronoun. You can specify user IDs for multiple users by separating them with a comma, as in: uid="1234, 5678". You can substitute actor for the user ID so you can more easily aggregate Feed stories.
optional useyou bool Use the word "you" if uid is viewing the page. (Default value is true.)
possessive bool Use the possessive form (his/her/your/their). (Default value is false.)
reflexive bool Use the reflexive form (himself/herself/yourself/themself). (Default value is false.)
objective bool Use the objective form (him/her/you/them). (Default value is false.)
usethey bool Use "they" if gender is not specified. (Default value is true.)
capitalize bool Force a capital letter for the pronoun. (Default value is false.)

Examples

If you're formatting the tag as FBML, you don't need to use a closing tag.

<fb:pronoun uid="12345" />


If you're formatting the tag as XFBML for Facebook Connect, you must use a closing tag.

<fb:pronoun uid="12345"></fb:pronoun>


Another FBML example.

<fb:pronoun uid="actor" possessive="true" useyou="false"/>
reference