Created
June 1, 2016 18:15
-
-
Save dmihal/6f1de7ddbeb6294ce73a29b3cea8d7f6 to your computer and use it in GitHub Desktop.
Download all visible photos from a Facebook Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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