Fb:if-can-see-photo
From Facebook Developer Wiki
Contents |
Description
Displays the enclosed content only if the logged in user can see the photo specified.
You should use this tag when specifying content that should only be shown when using fb:photo.
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.
You can use this tag in conjunction with fb:else.
Attributes
| Required | Name | Type | Description | |
| required | pid | string | An API-supplied pid of the photo, or any pid found in the query string of a photo URL on Facebook. The pid cannot be longer than 50 characters. | |
|---|---|---|---|---|
| optional | uid | int | If pid is not an API-supplied pid, this should be the id parameter in the query string used to find the pid. |
Examples
<fb:if-can-see-photo pid="12345">
<fb:photo pid="12345" />
Check out this cool photo!
</fb:if-can-see-photo>
<fb:if-can-see-photo pid="54321" uid="6789">
<fb:photo pid="54321" uid="6789" />
This one is cool too!
</fb:if-can-see-photo>
Notes
As of FBML v1.1 you can use this tag only on a canvas page.
