Skip to content

Instantly share code, notes, and snippets.

@dmihal
Created June 1, 2016 18:15
Show Gist options
  • Save dmihal/6f1de7ddbeb6294ce73a29b3cea8d7f6 to your computer and use it in GitHub Desktop.
Save dmihal/6f1de7ddbeb6294ce73a29b3cea8d7f6 to your computer and use it in GitHub Desktop.
Download all visible photos from a Facebook Page
// Run in console
var imgs = Array.from(document.querySelectorAll('._53s'))
var ids = imgs.map(img => img.dataset.fbid)
var time = 0;
ids.forEach(function(id){
setTimeout(function(){
console.log(id)
document.location.assign('https://www.facebook.com/photo/download/?fbid=' + id);
}, time);
time += 3000;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment