Sha256: 55de627e1dfdb46aa850d8229a39ce09e0afe48e0a7c6ae0dde431e76edaca89

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 Bytes

Contents

module FbGraph
  module Connections
    module Interests
      def interests(options = {})
        interests = FbGraph::Collection.new(get(options.merge(:connection => 'interests')))
        interests.map! do |interest|
          Page.new(interest.delete(:id), interest.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.4.2 lib/fb_graph/connections/interests.rb
fb_graph-0.4.1 lib/fb_graph/connections/interests.rb
fb_graph-0.4.0 lib/fb_graph/connections/interests.rb
fb_graph-0.3.0 lib/fb_graph/connections/interests.rb