Listing Table
Problem
What’s the schema for the listing table?
Solution
The listing table stores the
listings created in the Facebook Marketplace application. Its fields
are listed in Table 8-13. Queries to this
table will only return data the current user is allowed to see (i.e.,
you can’t request listing that the
current loggedinuser can’t see).
More information about this table, including an up-to-date listing of
fields, can be found at http://wiki.developers.facebook.com/index.php/Listings_(FQL).
Table 8-13. listing table fields
Name | Type | Index | Description |
|---|---|---|---|
| int | • | Listing ID of this listing. |
| string | URL pointing to this listing on Facebook. | |
| string | Title of this listing. | |
| string | Description of this listing. | |
| string | Price of this item as a string (rather than a float). | |
| int | • | User ID of the user who posted this item. |
| string | The last time this item was updated in epoch seconds. For more info about epoch seconds, see Formatting Relative Time. | |
| string | The top-level
categories for listings are | |
| string | Subcategories are the level below the category. Each category has about five subs (e.g., “For Sale” breaks down into “Books”, “Furniture”, “Tickets”, “Electronics”, “Cars”, and “Other”). | |
| array | An array of the images uploaded to this listing. Users can add four images when they create the listing and can add more after it’s been created (which is a really effective user ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access