Fb:visible-to-user

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Only displays the content inside the tag if the viewer is the specified user.[verify]

This also works for Facebook Pages with the content only displayed to an admin of the Page and the viewer is not on a Page profile.


[edit] Attributes

RequiredNameTypeDescription
required uid int The uid of the user that is allowed to see the content.[verify]
bgcolor color The color of the blank box shown to users who are not the owner or the user specified.


[edit] Examples

<fb:visible-to-user uid="12345">This is secret 4 u 2!</fb:visible-to-user>


[edit] Notes

  • This is new to FBML v1.1.
  • This does not appear to accept a comma-delimited list of user ids like fb:if-is-user does. Request for such. Seems to work for me. --561415460 15:53, 30 March 2008 (PDT)
  • Do not use this tag to display private or sensitive information. Content inside this tag is rendered to all users' browsers, including those who are not one of the specified users. For those who are not one of those users, the content is shown as white space on the page but it is still visible by viewing the page source.
  • Content in this tag is also visible to the owner.