Comment (FQL)

From Facebook Developer Wiki

Jump to: navigation, search


Description

The FQL comment table. Query this table to obtain comments associated with one or more fb:comments/Feed story comment XIDs.

To structure your query, use the table name (comment 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 the xid or post_id column.

Columns

IndexableNameTypeDescription
* xid string The external ID of the fb:comments being queried. You can specify more than one XID.
* object_id string The object_id of an object on Facebook. This can be a video, note, link, photo, or photo album. Note that for photos and albums, the object_id must be queried from the photo and album FQL tables. You must specify either an xid or an object_id.
* post_id string The ID of the post in the stream.
fromid int The user submitting a comment.
time int A Unix timestamp associated with the creation time of a comment.
text string The text of a comment.
id int A unique ID for a given XID for each comment.
username string The user name that a user entered when they posted a comment. In these cases, the fromid returned will be 0. Note that user names for valid users are not returned here.
reply_xid int The target XID for Feed stories generated by the user; applications can retrieve comments made to that story by calling this XID.

See Also

reference