Fb:if-is-group-member
From Facebook Developer Wiki
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
| Required | Name | Type | Description | |
| 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.
