Module: FbGraph::Connections::Conversations

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

Instance Method Summary collapse

Instance Method Details

#conversations(options = {}) ⇒ Object



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

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