looping over all pages

trying to figure out how to get url out of photo data, help michael!