Module: FbGraph2::Edge::SharedPosts

Included in:
Album, Post, Video
Defined in:
lib/fb_graph2/edge/shared_posts.rb

Instance Method Summary collapse

Instance Method Details

#shared_posts(params = {}) ⇒ Object Also known as: sharedposts



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

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