Fb:is-in-network

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Displays content inside the tag only if the user is in a given network.

Note: You can use fb:else with fb:is-in-network, even though the tag does not start with fb:if-.


Attributes

RequiredNameTypeDescription
required network int The network ID to check. You can check one network at a time.
optional uid int The user ID to check. (Default value is loggedinuser.)


Examples

<fb:is-in-network network="16777229" uid="1230541">User 1230541, you are in the <fb:networklink nid="16777229" /> network!</fb:is-in-network>


Notes

  • This tag renders content on canvas pages and for notifications and feed stories. It doesn't work with profiles, email and notifications.
  • You can use the fb:networklink FBML to display only the name of the network.
reference