Fb:visible-to-connection

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Use this tag to display the content inside the tag on a user's or a Facebook Page's profile only if the viewer is a friend of that user or is a fan of that Facebook Page.

Attributes

RequiredNameTypeDescription
optional bgcolor color The color of the blank box shown to viewers who are not friends of the user or fans of the Page.

Examples

<fb:visible-to-connection>Welcome, fans!</fb:visible-to-connection>

Notes

  • This is new to FBML v1.1, make sure you wrap your code in <fb:fbml version="1.1"> and </fb:fbml>! Even inside the default FBML tag, or when using setFBML.
  • 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.
reference