This looks a bit harder than usual. I'm a new wget user and I was thinking that maybe it's possible to login into Facebook and download images from a specific conversation.

I mean, I'd like to tell wget my password and user or use cookies (I don't know how to write the line command either) and download ONLY IMAGES from a conversation.

I know that this is certainly possible. But how would I do it?

  • I really doubt it. I don't think wget or curl offer logging in, but even if they did, Facebook has all of this complicated confirmation stuff. i.e. you have to confirm access from a new computer.
    – Sparhawk
    Commented Jun 18, 2014 at 10:43
  • 2
    I don't think wget is the right tool either. I would use the Facebook API. There are existing Perl and Python bindings for it.
    – Joseph R.
    Commented Jun 18, 2014 at 12:24

1 Answer 1


Using Chrome DevTools in your web-browser (also in Firefox, Opera and other), you can browse all media files in Application tab. To convert it into curl command, go to Network tab (refresh page if necessary or tick Preserve log), find image of your interest (list can be filtered by Img), right click on the request, then select Copy as cURL. Then paste the command to the terminal.

To convert from curl format to wget, do the following conversions:

  • remove --compress parameter,
  • change -H to --header in all places.

See also:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .