Module: FbGraph2::Edge::PromotablePosts

Included in:
Page
Defined in:
lib/fb_graph2/edge/promotable_posts.rb

Instance Method Summary collapse

Instance Method Details

#promotable_posts(params = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph2/edge/promotable_posts.rb', line 4

def promotable_posts(params = {})
  posts = self.edge :promotable_posts, params
  posts.collect! do |post|
    Post.new(post[:id], post).authenticate self.access_token
  end
end