Name

<fb:if-is-user/>

Synopsis

<fb:if-is-user>...<fb:else>...</fb:else></fb:if-is-user>

Within this tag, specify the IDs of the users for whom you would like to render content. Only the users with listed IDs will be able to see that content.

FBML-Specific Attributes

Required

uid=[int] default: none

The ID of the user for whom to display content. For multiple users, separate multiple user IDs with commas.

Optional

None.

Example FBML

Here is example FBML code for <fb:if-is-user/>:

<fb:if-is-user uid="1234567890,0987654321"> You're special 
  <fb:else> Sorry - you're one of the unprivileged. </fb:else> 
</fb:if-is-user>

Rendered HTML for Single Instance of Tag

If you’re the user with the ID 1234567890 or 0987654321, the rendered HTML looks like this:

You're special

If you’re not one of the two listed users, the rendered HTML looks like this:

Sorry - you're one of the unprivileged.

Additional Information

  • This tag supports <fb:else/>.

  • This tag may be used only on a user’s canvas page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.33.235