Module: FbGraph::Connections::Threads

Included in:
User
Defined in:
lib/fb_graph/connections/threads.rb

Instance Method Summary collapse

Instance Method Details

#threads(options = {}) ⇒ Object



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

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