Sha256: 7eda1b632cd2d37a23767dbf0191104029217006d29424aed42cb419335ed121

Contents?: true

Size: 605 Bytes

Versions: 43

Compression:

Stored size: 605 Bytes

Contents

module FbGraph
  module Connections
    module Comments
      def comments(options = {})
        comments = self.connection :comments, options
        comments.map! do |comment|
          Comment.new comment[:id], comment.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def comment!(options = {})
        comment = post options.merge(:connection => :comments)
        Comment.new comment[:id], options.merge(comment).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.20 lib/fb_graph/connections/comments.rb
fb_graph-2.4.19 lib/fb_graph/connections/comments.rb
fb_graph-2.4.18 lib/fb_graph/connections/comments.rb
fb_graph-2.4.17 lib/fb_graph/connections/comments.rb
fb_graph-2.4.16 lib/fb_graph/connections/comments.rb
fb_graph-2.4.15 lib/fb_graph/connections/comments.rb
fb_graph-2.4.14 lib/fb_graph/connections/comments.rb
fb_graph-2.4.13 lib/fb_graph/connections/comments.rb
fb_graph-2.4.12 lib/fb_graph/connections/comments.rb
fb_graph-2.4.11 lib/fb_graph/connections/comments.rb
fb_graph-2.4.10 lib/fb_graph/connections/comments.rb
fb_graph-2.4.9 lib/fb_graph/connections/comments.rb
fb_graph-2.4.8 lib/fb_graph/connections/comments.rb
fb_graph-2.4.7 lib/fb_graph/connections/comments.rb
fb_graph-2.4.6 lib/fb_graph/connections/comments.rb
fb_graph-2.4.4 lib/fb_graph/connections/comments.rb
fb_graph-2.4.3 lib/fb_graph/connections/comments.rb
fb_graph-2.4.2 lib/fb_graph/connections/comments.rb
fb_graph-2.4.1 lib/fb_graph/connections/comments.rb
fb_graph-2.4.0 lib/fb_graph/connections/comments.rb