Sha256: f7d1b27ab336e0cf647b7a0712f12fe0f0d5ac0e7626f0ffec6324b9d1d6fdb4

Contents?: true

Size: 618 Bytes

Versions: 35

Compression:

Stored size: 618 Bytes

Contents

module FbGraph
  module Connections
    module Tags
      def tags(options = {})
        tags = if @_tags_ && options.blank?
          return @_tags_ if @_tags_.first.is_a?(Tag)
          self.connection(:tags, options.merge(:cached_collection => @_tags_))
        else
          self.connection(:tags, options)
        end
        tags.map! do |tag|
          tag[:access_token] ||= options[:access_token] || self.access_token
          Tag.new(tag)
        end
      end

      module Taggable
        def tag!(options = {})
          post(options.merge(:connection => :tags))
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fb_graph-2.1.0.alpha lib/fb_graph/connections/tags.rb
fb_graph-2.0.2 lib/fb_graph/connections/tags.rb
fb_graph-2.0.1 lib/fb_graph/connections/tags.rb
fb_graph-2.0.0 lib/fb_graph/connections/tags.rb
fb_graph-2.0.0.beta lib/fb_graph/connections/tags.rb
fb_graph-2.0.0.alpha lib/fb_graph/connections/tags.rb
fb_graph-1.9.5 lib/fb_graph/connections/tags.rb
fb_graph-1.9.4 lib/fb_graph/connections/tags.rb
fb_graph-1.9.3 lib/fb_graph/connections/tags.rb
fb_graph-1.9.2 lib/fb_graph/connections/tags.rb
fb_graph-1.9.1 lib/fb_graph/connections/tags.rb
fb_graph-1.9.0 lib/fb_graph/connections/tags.rb
fb_graph-1.8.6 lib/fb_graph/connections/tags.rb
fb_graph-1.8.5 lib/fb_graph/connections/tags.rb
fb_graph-1.8.4 lib/fb_graph/connections/tags.rb