Sha256: 2b27739d8e0f4406f1cb507b5b5f41a70d5193b5ba89d0203199a75fb43ee813

Contents?: true

Size: 579 Bytes

Versions: 42

Compression:

Stored size: 579 Bytes

Contents

module FbGraph
  module Connections
    module Photos
      def photos(options = {})
        photos = self.connection(:photos, options)
        photos.map! do |photo|
          Photo.new(photo[:id], photo.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end

      def photo!(options = {})
        photo = post(options.merge(:connection => :photos))
        Photo.new(photo[:id], options.merge(photo).merge(
          :access_token => options[:access_token] || self.access_token
        ))
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
fb_graph-2.2.6 lib/fb_graph/connections/photos.rb
fb_graph-2.2.5 lib/fb_graph/connections/photos.rb
fb_graph-2.2.4 lib/fb_graph/connections/photos.rb
fb_graph-2.2.3 lib/fb_graph/connections/photos.rb
fb_graph-2.2.2 lib/fb_graph/connections/photos.rb
fb_graph-2.2.1 lib/fb_graph/connections/photos.rb
fb_graph-2.2.0 lib/fb_graph/connections/photos.rb
fb_graph-2.2.0.beta lib/fb_graph/connections/photos.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/connections/photos.rb
fb_graph-2.2.0.alpha lib/fb_graph/connections/photos.rb
fb_graph-2.1.13 lib/fb_graph/connections/photos.rb
fb_graph-2.1.12 lib/fb_graph/connections/photos.rb
fb_graph-2.1.11 lib/fb_graph/connections/photos.rb
fb_graph-2.1.10 lib/fb_graph/connections/photos.rb
fb_graph-2.1.9 lib/fb_graph/connections/photos.rb
fb_graph-2.1.8 lib/fb_graph/connections/photos.rb
fb_graph-2.1.7 lib/fb_graph/connections/photos.rb
fb_graph-2.1.6 lib/fb_graph/connections/photos.rb
fb_graph-2.1.5 lib/fb_graph/connections/photos.rb
fb_graph-2.1.4 lib/fb_graph/connections/photos.rb