Module: FbGraph::Connections::Checkins

Included in:
Page, User
Defined in:
lib/fb_graph/connections/checkins.rb

Instance Method Summary collapse

Instance Method Details

#checkin!(options = {}) ⇒ Object



13
14
15
16
17
18
# File 'lib/fb_graph/connections/checkins.rb', line 13

def checkin!(options = {})
  checkin = post options.merge(:connection => :checkins)
  Checkin.new checkin[:id], options.merge(checkin).merge(
    :access_token => options[:access_token] || self.access_token
  )
end

#checkins(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/fb_graph/connections/checkins.rb', line 4

def checkins(options = {})
  checkins = self.connection :checkins, options
  checkins.map! do |checkin|
    Checkin.new checkin[:id], checkin.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end