Fb:if-is-group-member

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

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


[edit] 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.


[edit] 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>


[edit] Notes

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