Fb:userlink

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Prints the specified user's full name linked to their profile along with their network, optionally (as is normally displayed on the Wall, for example).

This tag is deprecated. And since feed.publishActionOfUser has been deprecated as well, this tag is no longer necessary.

June 23, 2009: This tag has been deleted, so it no longer works as either an FBML tag or an XFBML tag.

Attributes

RequiredNameTypeDescription
required uid int The User ID for the user whose name and link you want to retrieve. Instead of using the User ID number the uid can equal "loggedinuser" (only on Canvas page) or "profileowner" (on Canvas page or profile) to specify the exact name and link of the current logged on user and link to the user to the profile. See below for example.
optional shownetwork bool Indicates whether to display the network name. (Default value is false.)
ifcantsee string The alternate text to display if the user cannot see the specified user ID.

Examples

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

<fb:userlink uid="123445" />


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

<fb:userlink uid="123445"></fb:userlink>


Another FBML example.

<fb:userlink uid="loggedinuser" />


Another XFBML example.

<fb:userlink uid="profileowner"></fb:userlink>

See Also

reference