Fb:if-can-see-photo
From Facebook Developers Wiki
Contents |
[edit] Description
Displays the enclosed content only if the logged in user can see the photo specified.
You should use this tag[who says?] when specifying content that should only be shown when using fb:photo.
You can use this tag in conjunction with fb:else.
[edit] Attributes
| Required | Name | Type | Description | |
| required | pid | int | An API-supplied pid of the photo, or any pid found in the query string of a photo URL on Facebook. | |
|---|---|---|---|---|
| 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. |
[edit] 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="543212" uid="6789"> <fb:photo pid="54321" uid="6789" /> This one is cool too! </fb:if-can-see-photo> |
[edit] Notes
As of FBML v1.1 you can use this tag only on a canvas page.
