Module: FbGraph::Connections::PromotablePosts

Included in:
Page
Defined in:
lib/fb_graph/connections/promotable_posts.rb

Instance Method Summary collapse

Instance Method Details

#promotable_posts(options = {}) ⇒ Object


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

def promotable_posts(options = {})
  posts = self.connection :promotable_posts, options
  posts.map! do |post|
    PromotablePost.new post[:id], post.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end