Method: Facebooker::Session#get_photos
- Defined in:
- lib/facebooker/session.rb
#get_photos(pids = nil, subj_id = nil, aid = nil) ⇒ Object
307 308 309 310 311 312 313 314 315 316 |
# File 'lib/facebooker/session.rb', line 307 def get_photos(pids = nil, subj_id = nil, aid = nil) if [subj_id, pids, aid].all? {|arg| arg.nil?} raise ArgumentError, "Can't get a photo without a picture, album or subject ID" end @photos = post('facebook.photos.get', :subj_id => subj_id, :pids => pids, :aid => aid ) do |response| response.map do |hash| Photo.from_hash(hash) end end end |