Module: FbGraph::Connections::Photos
Instance Method Summary collapse
Instance Method Details
#photo!(options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fb_graph/connections/photos.rb', line 13 def photo!( = {}) photo = post .merge(:connection => :photos) Photo.new photo[:id], .merge(photo).merge( :access_token => [:access_token] || self.access_token ) end |
#photos(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fb_graph/connections/photos.rb', line 4 def photos( = {}) photos = self.connection :photos, photos.map! do |photo| Photo.new photo[:id], photo.merge( :access_token => [:access_token] || self.access_token ) end end |