Sha256: d442fa80361f165ca303d95c98b8f53370c43cc9e226a11d542a1d7d8bf85dc2

Contents?: true

Size: 574 Bytes

Versions: 3

Compression:

Stored size: 574 Bytes

Contents

module FbGraph
  module Connections
    module Feed
      def feed(options = {})
        posts = self.connection(:feed, options)
        posts.map! do |post|
          Post.new(post.delete(:id), post.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end

      def feed!(options = {})
        post = post(options.merge(:connection => :feed))
        Post.new(post.delete(:id), options.merge(post).merge(
          :access_token => options[:access_token] || self.access_token
        ))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fb_graph-1.6.4 lib/fb_graph/connections/feed.rb
fb_graph-1.6.3 lib/fb_graph/connections/feed.rb
fb_graph-1.6.2 lib/fb_graph/connections/feed.rb