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!( = {}) post .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( = {}) tabs = self.connection(:tabs, ) tabs.map! do |tab| Tab.new(tab[:id], tab.merge( :access_token => [:access_token] || self.access_token )) end end |