Reference Guide

facebook FBML Reference Guide Page 42 of 159
Fb:photo
Description
Renders a Facebook photo.
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.
Examples
<fb:photo pid="12345" />
<fb:photo pid="54321" uid="6789" />
Notes
The pid returned after making an FQL call is not the same pid found in the string of a photo URL. In
order to use the API-supplied pid, do not include the uid.
Any content that belongs with the photo should be wrapped
[who says?]
by fb:if-can-see-photo.
www.yapish.com