Module: FbGraph::Connections::Friends

Included in:
User
Defined in:
lib/fb_graph/connections/friends.rb

Instance Method Summary collapse

Instance Method Details

#friends(options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph/connections/friends.rb', line 4

def friends(options = {})
  users = FbGraph::Collection.new(get(options.merge(:connection => 'friends')))
  users.map! do |user|
    User.new(user.delete(:id), user)
  end
end