Module: FbGraph::Connections::Photos

Included in:
Album, Page, User
Defined in:
lib/fb_graph/connections/photos.rb

Instance Method Summary collapse

Instance Method Details

#photos(options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph/connections/photos.rb', line 4

def photos(options = {})
  photos = FbGraph::Collection.new(get(options.merge(:connection => 'photos')))
  photos.map! do |photo|
    Photo.new(photo.delete(:id), photo)
  end
end