Sha256: 8877a4defeae31af54452191784b778ad91793777f061f1429d8adef70a30f76

Contents?: true

Size: 650 Bytes

Versions: 43

Compression:

Stored size: 650 Bytes

Contents

module FbGraph
  module Connections
    module Messages
      def messages(options = {})
        messages = self.connection :messages, options
        messages.map! do |message|
          Message.new message[:id], message.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def message!(message, options = {})
        options[:message] = message
        message = post options.merge(:connection => :messages)
        Message.new message[:id], message.merge(options).merge(
          :access_token => options[:access_token] || self.access_token
        )
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
fb_graph-2.4.16 lib/fb_graph/connections/messages.rb
fb_graph-2.4.15 lib/fb_graph/connections/messages.rb
fb_graph-2.4.14 lib/fb_graph/connections/messages.rb