Ok, so facebook is constantly changing something in their apis, the way the page works etc. For now (8 Feb 17) it is not possible to download all photos from conversation.
I've tried:
- downloading copy of my data - doesn't contain any such photos
- going to album of shared photos in the converation and then downloading the page - files don't contain images (even thumbnails...)
- scrolling through the page on which the images appear to load them all, then saving the page, extracting links to the images and scraping them - images don't load in separate window, there is some authentication problem
- using Chrome extentions - Image downloader, Fatkun downloader - to download the images - extentions don't list the images at all
- using various versions of FBMessageScraper from github - all of them don't work since facebook changed it's facebook/messages to facebook/messanger
- trying to get the photos from the iphone messenger - it doesn't have this option
- manually clicking through the images one at the time and clicking "download" - takes too much time
Finally, I just wrote a little script, which just automates the last option - ie clicks 'right' and left mouse button constantly:
sleep 2
while true ; do
# scrot --border '/home/jack/screenshots/%m.%d.%y at %H.%M.%S.png'
xdotool click 1
sleep 1
xte 'keydown Right'
xte 'keyup Right'
done
You just have to start the script, switch windows, position the mouse on the "download" button - and wait patiently (my ~1000 photos took about 15 minutes).
If you want, you can remove click 1
line and replace it with the scrot
- it will take a screenshot instead of downloading (it may be useful when you want to download something else, like a gallery on a webpage, which doesn't have "download" option")
Cheers!