module FbGraph2::Edge::Photos

Public Instance Methods

photo!(params = {}) click to toggle source
# File lib/fb_graph2/edge/photos.rb, line 12
def photo!(params = {})
  photo = self.post params, edge: :photos
  Photo.new(photo[:id], params.merge(photo)).authenticate self.access_token
end
photos(*args) click to toggle source
# File lib/fb_graph2/edge/photos.rb, line 4
def photos(*args)
  params = args.extract_options!
  photos = self.edge :photos, params, edge_scope: args.first
  photos.collect! do |photo|
    Photo.new(photo[:id], photo).authenticate self.access_token
  end
end