Module: FbGraph::Connections::Feed
Instance Method Summary collapse
Instance Method Details
#feed(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fb_graph/connections/feed.rb', line 4 def feed( = {}) posts = self.connection :feed, posts.map! do |post| Post.new post[:id], post.merge( :access_token => [:access_token] || self.access_token ) end end |
#feed!(options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fb_graph/connections/feed.rb', line 13 def feed!( = {}) post = post .merge(:connection => :feed) Post.new post[:id], .merge(post).merge( :access_token => [:access_token] || self.access_token ) end |