Working with your user’s and group’s information is an important part of any Facebook application। You want to let your users easily interact with other users of your application, and there are some specific FBML tags to help with these interactions:

  • <fb:name> returns the user’s name for the uid passed to the tag। This function has a lot of customizable features to allow you to display the possessive of the user’s name and additional logic to handle users who have protected their profiles. For example, the <fb:name uid="$user" ifcantsee="Anonymous"> tag returns “Anonymous” if the user has chosen not to show their name in their profile.
  • <fb:grouplink> returns the name and a link of the group ID passed to the tag।
  • <fb:user> displays content to the specified user and no one else।
  • <fb:pronoun> renders a pronoun for a specific user। This is a fun tag to use because it has several attributes that let you choose the different formats of the pronoun’s use, including possessive, reflexive, and objective forms.
  • <fb:profile-pic> renders a linked image of a user’s profile picture। By default this is a 50-by-50-pixel image. This is good for “iconifying” your user’s interactions.

0 comments