Sha256: d646a13afaef8287da56b3ff1e72f14a1b618a1669d8cd92ad6db1c5a2683973
Contents?: true
Size: 593 Bytes
Versions: 42
Compression:
Stored size: 593 Bytes
Contents
module FbGraph module Connections module Photos def photos(options = {}) photos = self.connection(:photos, options) photos.map! do |photo| Photo.new(photo.delete(: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.delete(: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