Graph:FriendList
From Facebook Developer Wiki (FbDevWiki.com)
A Facebook friend list
Contents |
Example
https://graph.facebook.com/me/friendlists (Your friend lists)
Properties
| Name | Description | Permissions | Returns | Condition |
|---|---|---|---|---|
| id | The friend list ID | Requires the read_friendlist permission |
A JSON string | |
| name | The name of the friend list | Requires the read_friendlist permission |
A JSON string |
Connections
| Name | Description | Permissions | Returns |
|---|---|---|---|
| members | All of the users who are members of this list | Publicly available | An array of JSON objects containing friend id and name fields
|
Publishing
Requires the manage_friendlists permission.
You can create a new friendlist by issuing a POST to https://graph.facebook.com/[User ID]/friendslists?name=[FriendList Name]. To add new members to a friendlist, issue a POST to https://graph.facebook.com/[FriendList ID]/members/[USER ID].
You can delete a friend list by issuing a DELETE to https://graph.facebook.com/[FriendList ID]. To delete a member of a list, issue a DELETE to https://graph.facebook.com/[FriendList ID]/members/[USER ID].
curl -F 'access_token=...' \
https://graph.facebook.com/me/friendlists?name=old-school-friends