Sha256: 46e4c1fbaf55eaf8a907659b498e4c0b040ac354bffebb1defec51561dedb8bb
Contents?: true
Size: 761 Bytes
Versions: 4
Compression:
Stored size: 761 Bytes
Contents
module FbGraph module Connections module Accounts # == Fetching Pages owned by the current user. # # If the manage_pages permission has been granted, # this connection also yields access_tokens that can be used to query the Graph API on behalf of the page. # # ref) http://developers.facebook.com/docs/reference/api/user # # FbGraph::User.me(ACCESS_TOKEN).accounts # => array of FbGraph::Page def accounts(options = {}) accounts = self.connection(:accounts, options) accounts.map! do |account| account[:access_token] ||= options[:access_token] || self.access_token FbGraph::Page.new(account.delete(:id), account) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems