Name
<fb:is-in-network/>
Synopsis
<fb:is-in-network>...<fb:else>...</fb:else></fb:is-in-network>
Content within the tags is rendered only if the user
is in the specified network. Use the <fb:else/>
logic tag (described later in this chapter) to render content if a
user is not in the specified network.
FBML-Specific Attributes
Required
network=[int] default: noneThe network ID (
nid) to test against. If the user is not in this network, either the content within the <fb:else/> tags is rendered or no content is rendered at all.
Optional
uid=[int] default: loggedinuserThe user ID to test the network against.
Example FBML
Here is example FBML code for
<fb:is-in-network/>:
<fb:is-in-network network="1234567890" uid="0987654321">
This text shows up if user with id 0987654321 is in
the network with id 1234567890.
<fb:else>
If user with id 0987654321 is not in network with id
1234567890 this text will show up.
</fb:else>
</fb:is-in-network>Additional Information
This tag supports <fb:else/> even though it does not start with
<fb:if*/>.This tag works only on canvas pages and feed stories. It will not work on profiles, notifications, or News Feeds.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access