Sha256: 26e7243b17b586b677c85cf73adec23f881d585e5981766ad2895cd45ca93452
Contents?: true
Size: 594 Bytes
Versions: 26
Compression:
Stored size: 594 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
26 entries across 26 versions & 2 rubygems