Standard friend info (FQL)

From Facebook Developer Wiki

Jump to: navigation, search


Description

The FQL standard_friend_info table. Query this table to determine whether two users are linked together as friends.

To structure your query, use the table name (standard_friend_info 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.

This query is indexable only if both user IDs are specified or if you query with an authorized user's user ID. In order to make your query indexable, the WHERE in your query should contain an = or IN clause for these columns.

This table must only be used when there IS NOT an active session. This table is for looking up friend information of users for cron processing and should not be used for displaying information to users. Since this table allows access to friendship information of any of an app's authorized users it's information should not be revealed directly to users. Information from this table is for the app's internal use ONLY.

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.

Columns

IndexableNameTypeDescription
* uid1 int The user ID of the first user in the pair being queried.
* uid2 int The user ID of the second user in the pair being queried.

See Also

reference