I have this script, galdown, that is capable of bulk-downloading galleries from Facebook, Flickr, etc. However, a couple of months ago, Facebook broke: now it will only download the first 28 images in a gallery, because they changed their galleries to use that bullshit "we only load the images after you've scrolled the mouse to the bottom of the screen" trick that is so popular with the web-breaking microcephalics these days.
How do I find the URLs of photos 29 and later?
I haven't found a user-agent that makes a difference. Adding &_fb_noscript=1 to the URL seems to do nothing. I can't even tell what URL it's loading to get (the presumably JSON list of) the remainder of the images.