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.7.1 lib/fb_graph/connections/comments.rb
fb_graph-2.7.0 lib/fb_graph/connections/comments.rb
fb_graph-2.6.7 lib/fb_graph/connections/comments.rb
fb_graph-2.6.6 lib/fb_graph/connections/comments.rb
fb_graph-2.6.5 lib/fb_graph/connections/comments.rb
fb_graph-2.6.4 lib/fb_graph/connections/comments.rb
fb_graph-2.6.3 lib/fb_graph/connections/comments.rb
fb_graph-2.6.2 lib/fb_graph/connections/comments.rb
fb_graph-2.6.1 lib/fb_graph/connections/comments.rb
fb_graph-2.6.0 lib/fb_graph/connections/comments.rb
fb_graph-2.5.9 lib/fb_graph/connections/comments.rb
fb_graph-2.5.8 lib/fb_graph/connections/comments.rb
fb_graph-2.5.7 lib/fb_graph/connections/comments.rb
fb_graph-2.5.6 lib/fb_graph/connections/comments.rb
fb_graph-2.5.5 lib/fb_graph/connections/comments.rb
fb_graph-2.5.4 lib/fb_graph/connections/comments.rb
fb_graph-2.5.3 lib/fb_graph/connections/comments.rb
fb_graph-2.5.2 lib/fb_graph/connections/comments.rb
fb_graph-2.5.1 lib/fb_graph/connections/comments.rb
fb_graph-2.5.0 lib/fb_graph/connections/comments.rb