Module: FbGraph::Connections::Feed

Included in:
Event, Group, Page, User
Defined in:
lib/fb_graph/connections/feed.rb

Instance Method Summary collapse

Instance Method Details

#feed(options = {}) ⇒ Object



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

def feed(options = {})
  posts = FbGraph::Collection.new(get(options.merge(:connection => 'feed')))
  posts.map! do |post|
    Post.new(post.delete(:id), post)
  end
end