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