Sha256: 8620c1e52939726d890cdde090e0e699a7b5e54cc0ba9a055bf0e9c127aee605

Contents?: true

Size: 513 Bytes

Versions: 18

Compression:

Stored size: 513 Bytes

Contents

module FbGraph
  module Connections
    module Inbox
      def inbox(options = {})
        threads = self.connection(:inbox, options)
        threads.map! do |thread|
          # NOTE:
          #  Inbox API doesn't return thread object until their message platform becomes broadly available.
          #  Use Post instead of Thread for now.
          Post.new(thread[:id], thread.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fb_graph-2.1.5 lib/fb_graph/connections/inbox.rb
fb_graph-2.1.4 lib/fb_graph/connections/inbox.rb
fb_graph-2.1.3 lib/fb_graph/connections/inbox.rb
fb_graph-2.1.2 lib/fb_graph/connections/inbox.rb
fb_graph-2.1.1 lib/fb_graph/connections/inbox.rb
fb_graph-2.1.0 lib/fb_graph/connections/inbox.rb
fb_graph-2.1.0.alpha lib/fb_graph/connections/inbox.rb
fb_graph-2.0.2 lib/fb_graph/connections/inbox.rb
fb_graph-2.0.1 lib/fb_graph/connections/inbox.rb
fb_graph-2.0.0 lib/fb_graph/connections/inbox.rb
fb_graph-2.0.0.beta lib/fb_graph/connections/inbox.rb
fb_graph-2.0.0.alpha lib/fb_graph/connections/inbox.rb
fb_graph-1.9.5 lib/fb_graph/connections/inbox.rb
fb_graph-1.9.4 lib/fb_graph/connections/inbox.rb
fb_graph-1.9.3 lib/fb_graph/connections/inbox.rb
fb_graph-1.9.2 lib/fb_graph/connections/inbox.rb
fb_graph-1.9.1 lib/fb_graph/connections/inbox.rb
fb_graph-1.9.0 lib/fb_graph/connections/inbox.rb