Fb:if-is-app-user
From Facebook Developer Wiki
Contents |
Description
Displays the enclosed content only if the specified user has accepted the terms of service of the application (that is, authorized your application). For example, if the user has not authorized your application, you can display a prompt to for the user to authorize your application. If the user has already authorized your application you can use fb:else to render application content.
Important: You should use this tag to gate elements in your application that already are privacy-controlled. Do not use this tag to gate content like rendered user data, as a savvy user can view the source and see what's hidden.
Attributes
| Required | Name | Type | Description | |
| optional | uid | int | The user ID to check. (Default value is loggedinuser.) |
|---|
Examples
<fb:if-is-app-user uid="12345">
Here's the user's score: 55555!
<fb:else>That user hasn't signed up for the app!</fb:else>
</fb:if-is-app-user>
<fb:if-is-app-user>
Your score: 55555!
<fb:else>You should sign up and play!</fb:else>
</fb:if-is-app-user>
Notes
As of FBML v1.1 you can use this tag only on a canvas page.
