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.2.2 lib/fb_graph/connections/tags.rb
fb_graph-2.2.1 lib/fb_graph/connections/tags.rb
fb_graph-2.2.0 lib/fb_graph/connections/tags.rb
fb_graph-2.2.0.beta lib/fb_graph/connections/tags.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/connections/tags.rb
fb_graph-2.2.0.alpha lib/fb_graph/connections/tags.rb
fb_graph-2.1.13 lib/fb_graph/connections/tags.rb
fb_graph-2.1.12 lib/fb_graph/connections/tags.rb
fb_graph-2.1.11 lib/fb_graph/connections/tags.rb
fb_graph-2.1.10 lib/fb_graph/connections/tags.rb
fb_graph-2.1.9 lib/fb_graph/connections/tags.rb
fb_graph-2.1.8 lib/fb_graph/connections/tags.rb
fb_graph-2.1.7 lib/fb_graph/connections/tags.rb
fb_graph-2.1.6 lib/fb_graph/connections/tags.rb
fb_graph-2.1.5 lib/fb_graph/connections/tags.rb
fb_graph-2.1.4 lib/fb_graph/connections/tags.rb
fb_graph-2.1.3 lib/fb_graph/connections/tags.rb
fb_graph-2.1.2 lib/fb_graph/connections/tags.rb
fb_graph-2.1.1 lib/fb_graph/connections/tags.rb
fb_graph-2.1.0 lib/fb_graph/connections/tags.rb