lib/fb_graph/connections/home.rb in fb_graph-0.2.2 vs lib/fb_graph/connections/home.rb in fb_graph-0.3.0
- old
+ new
@@ -2,10 +2,12 @@
module Connections
module Home
def home(options = {})
posts = FbGraph::Collection.new(get(options.merge(:connection => 'home')))
posts.map! do |post|
- Post.new(post.delete(:id), post)
+ Post.new(post.delete(:id), post.merge(
+ :access_token => options[:access_token] || self.access_token
+ ))
end
end
end
end
end
\ No newline at end of file