lib/fb_graph/connections/accounts.rb in fb_graph-1.8.6 vs lib/fb_graph/connections/accounts.rb in fb_graph-1.9.0

- old
+ new

@@ -3,10 +3,15 @@ module Accounts def accounts(options = {}) accounts = self.connection(:accounts, options) accounts.map! do |account| account[:access_token] ||= options[:access_token] || self.access_token - Page.new(account[:id], account) + case self + when User + Page.new(account[:id], account) + when Application + TestUser.new(account[:id], account) + end end end end end end \ No newline at end of file