Skip to content

FriendLists and Members

nov matake edited this page Oct 24, 2011 · 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)
Clone this wiki locally