// go to page with all the thumbnails // scroll down to make sure all thumbnails have loaded on the page // find img class -- something like: // x1g5rohu x5y21rd xlxv11r xh9vej3 // replace that in code below let urls = [] thumbs = document.getElementsByClassName('x1g5rohu x5y21rd xlxv11r xh9vej3'); for (var i = 0; i < thumbs.length; i++) { urls.push(thumbs[i].src); } console.log(urls); // then use the urls to create bash script with wget to download them all // each line something like // wget -O // or can use wget -i if you are happy with the facebook url names