Fb:photo

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Renders a Facebook photo.


[edit] Attributes

RequiredNameTypeDescription
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 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.