Module: FbGraph::Connections::Tabs

Included in:
Page
Defined in:
lib/fb_graph/connections/tabs.rb

Instance Method Summary collapse

Instance Method Details

#tab!(options = {}) ⇒ Object



13
14
15
# File 'lib/fb_graph/connections/tabs.rb', line 13

def tab!(options = {})
  post options.merge(:connection => :tabs)
end

#tabs(options = {}) ⇒ Object



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

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