Module: FbGraph::Connections::Groups

Included in:
Page, User
Defined in:
lib/fb_graph/connections/groups.rb

Instance Method Summary collapse

Instance Method Details

#groups(options = {}) ⇒ Object


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

def groups(options = {})
  groups = self.connection :groups, options
  groups.map! do |group|
    Group.new group[:id], group.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end