Fb:user-status

From Facebook Developers Wiki

Jump to: navigation, search

[edit] Description

Returns the status of the user specified by uid. If there is a URL in the status that starts with either http or https, it can be formatted as a hyperlink.

If the viewing user doesn't have permission to see the user's status, an empty string is returned.

Note: This tag only returns the status, not the user's name, so it might be more useful to display the user's name along with the status.


[edit] Attributes

RequiredNameTypeDescription
required uid int The user ID of the user whose status you want to retrieve.
optional linked bool Indicates whether URLs in the status should be formatted as hyperlinks. (Default value is true.)


[edit] Examples

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

<fb:user-status uid="12345" linked="true"/>


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

<fb:user-status uid="12345" linked="true"></fb:user-status>