Fb:if-is-user

From Facebook Developer Wiki

Revision as of 23:40, 29 July 2009 by Pete Bratach (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

Description

Only renders the content inside the tag if the viewer is one of the specified user(s).

Important: You should use this tag to gate elements in your application that already are privacy-controlled. Do not use this tag to gate content like rendered user data, as a savvy user can view the source and see what's hidden.

Attributes

RequiredNameTypeDescription
required uid int The user ID of the user that is allowed to see the content. To match multiple users, pass in a comma-delimited list of uids.

Examples

<fb:if-is-user uid="uid1,uid2">This is secret 4 u 2!</fb:if-is-user>

Notes

As of FBML v1.1 you can use this tag only on a canvas page.
As of June 11 2009 you can use this more widely for example in a Notification.

reference