Module: FbGraph::Connections::Accounts
- Included in:
- User
- Defined in:
- lib/fb_graph/connections/accounts.rb
Instance Method Summary collapse
Instance Method Details
#accounts(options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/fb_graph/connections/accounts.rb', line 4 def accounts( = {}) accounts = self.connection(:accounts, ) accounts.map! do |account| account[:access_token] ||= [:access_token] || self.access_token Page.new(account.delete(:id), account) end end |