October 2008
Intermediate to advanced
434 pages
12h 7m
English
How do I display content only to members of a specific network?
Use the fb:is-in-network
tag and specify the network and uids. The simplest form is:
<fb:is-in-network network="12345" uid="12345">Private content goes here</fb:is-in-network>
Although this tag doesn’t start with the word “if”, you can
still use it in combination with the fb:else tag to display alternate content to people who aren’t in
the network:
<fb:is-in-network network="12345" uid="loggedinuser">
Private content goes here
<fb:else>
Sorry! You're not in <fb:networklink nid="12345"/>.
</fb:else>
</fb:is-in-network>Note that the tag uses network="12345" and not nid="12345" as you might expect.
Read now
Unlock full access