An FQL table that can be used to return a list of a user's friends or to show whether two users are friends.
If this table is queried with two user IDs and they are not friends, it will return an empty array.
The User Graph API object has an equivalent friends connection.
To read the friend table you need
access_token to retrieve friends of the current session userThis is the only user that this table can be queried for, the friends of friends cannot be retrieved.
The friends of the currently logged in user (Try this query):
SELECT uid2 FROM friend WHERE uid1 = me()
Determine whether the currently logged in user is friends with another user, Bret Taylor (Try this query):
SELECT uid1, uid2 FROM friend WHERE uid1 = me() AND uid2 = 220439
| Indexable | Name | Type | Description |
|---|---|---|---|
| * | uid1 | int | The |
| * | uid2 | int | The |