Sha256: 5e2dda2a006e97e400d8d6ca9442826681bf79713725986e0551fb1e61924062

Contents?: true

Size: 491 Bytes

Versions: 18

Compression:

Stored size: 491 Bytes

Contents

module FbGraph
  module Connections
    module UserLikes
      def likes(options = {})
        likes = self.connection :likes, options
        likes.map! do |like|
          Page.new like[:id], like.merge!(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def like?(page, options = {})
        like = self.connection :likes, options.merge(:connection_scope => page.identifier)
        like.present?
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fb_graph-2.4.15 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.14 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.13 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.12 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.11 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.10 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.9 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.8 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.7 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.6 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.4 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.3 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.2 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.1 lib/fb_graph/connections/user_likes.rb
fb_graph-2.4.0 lib/fb_graph/connections/user_likes.rb
fb_graph-2.3.2 lib/fb_graph/connections/user_likes.rb
fb_graph-2.3.1 lib/fb_graph/connections/user_likes.rb
fb_graph-2.3.0 lib/fb_graph/connections/user_likes.rb