Fb:photo
From Facebook Developers Wiki
Contents |
[edit] Description
Renders a Facebook photo.
[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 the pid is not an API-supplied pid, this should be the ID parameter in the query string used to find the pid. | |
| size | string | The size of the photo to display. (default value is normal). Other valid values are thumb (t), small (s), normal (n), and square (q). | ||
| align | string | The image's alignment. (default value is left) and the only other valid value is right. |
[edit] Examples
| <fb:photo pid="12345" /> |
| <fb:photo pid="54321" uid="6789" /> |
[edit] Notes
- The
pidreturned after making an FQL call is not the samepidfound in the string of a photo URL. In order to use the API-suppliedpid, do not include theuid.
- Any content that belongs with the photo should be wrapped[who says?] by fb:if-can-see-photo.
