Fb:if-is-group-member

From Facebook Developer Wiki

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

Contents

Description

Displays the enclosed content only if the specified user is a member of the specified group.

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 gid int The group ID.
optional uid int The user ID to check. (Default value is loggedinuser.)
role string The role to check. (Default value is member.). Other valid values are officer, admin.

Examples

<fb:if-is-group-member gid="54321" uid="12345" role="admin"> Hey, you're an admin of that group! <fb:else>Sorry, admins only!</fb:else> </fb:if-is-group-member>

Notes

As of FBML v1.1 you can use this tag only on a canvas page.

reference