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