Sha256: fbc1bfbbecec948546ce459af9f9fe0045bce65db713da292d845faaeaa4d42e

Contents?: true

Size: 761 Bytes

Versions: 19

Compression:

Stored size: 761 Bytes

Contents

module FbGraph
  module Connections
    # == Fetch checkins
    # 
    # * To get a user's check-ins, request the "user_checkins".
    # * To see the user's friends' check-ins, request the "friends_checkins". 
    # ref) http://developers.facebook.com/docs/api#places
    # 
    #   FbGraph::User.new("matake").checkins(:access_token => ACCESS_TOKEN)
    #   FbGraph::Page.new("Tokyo").checkins(:access_token => ACCESS_TOKEN)
    module Checkins
      def checkins(options = {})
        checkins = self.connection(:checkins, options)
        checkins.map! do |checkin|
          FbGraph::Checkin.new(checkin.delete(:id), checkin.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
fb_graph-1.2.1 lib/fb_graph/connections/checkins.rb
fb_graph-1.2.0 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.7 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.6 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.5 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.4 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.3 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.2 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.1 lib/fb_graph/connections/checkins.rb
fb_graph-1.1.0 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.7 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.6 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.5 lib/fb_graph/connections/checkins.rb
palidanx-fb_graph-1.0.4 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.4 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.3 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.2 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.1 lib/fb_graph/connections/checkins.rb
fb_graph-1.0.0 lib/fb_graph/connections/checkins.rb