Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

FriendLists and Members

nov matake edited this page · 1 revision

FriendList and Members

Fetch All List

me = FbGraph::User.me(ACCESS_TOKEN)
me.friend_lists

Create List

me = FbGraph::User.me(ACCESS_TOKEN)
me.friend_list! :name => 'My Family'

Add a Member

friend_list = FbGraph::FriendList.new('12345', :access_token => ACCESS_TOKEN)
friend_list.member! FbGraph::User.new(123456789)

Remove a member

friend_list = FbGraph::FriendList.new('12345', :access_token => ACCESS_TOKEN)
friend_list.unmember! FbGraph::User.new(123456789)
Something went wrong with that request. Please try again.