Photo (FQL)

From Facebook Developers Wiki

Jump to: navigation, search


[edit] Description

The FQL photo table. Query this table to return information about a photo.

To structure your query, use the table name (photo in this case) in the FROM clause. The items in the Name column correspond to columns in the table that can be referenced in the SELECT and WHERE clauses.

In order to make your query indexable, the WHERE in your query should contain an = or IN clause for one of the columns marked with a * in the Indexable column of the table.

The See Also section lists API functions that work on similar data; their documentation pages contain additional information about the contents of the column and example FQL queries.


[edit] Columns

IndexableNameTypeDescription
* pid int The ID of the photo being queried.
* aid int The ID of the album containing the photo being queried.
owner int The user ID of the owner of the photo being queried.
src_small string The URL to the thumbnail version of the photo being queried. The image can have a maximum width of 75px and a maximum height of 225px. This URL may be blank.
src_big string The URL to the full-sized version of the photo being queried. The image can have a maximum width or height of 604px. This URL may be blank.
src string The URL to the album view version of the photo being queried. The image can have a maximum width or height of 130px. This URL may be blank.
link string The URL to the page containing the photo being queried.
caption string The caption for the photo being queried.
created string The date when the photo being queried was added.


[edit] See Also