I want to download a video uploaded by a friend on Facebook for offline access. How can I do that? I tried almost all Chrome extensions on Chrome store and none seems to work. Also, youtube-dl didn't work as expected. Any reliable way to download it?
5 Answers
youtube-dl
utility will work just fine, it just need your user credentials to be able to access the page. Like most sites, Facebook uses cookies for this. If you copy your cookies from your browser when you're logged in and add them to the youtube-dl command like via the --add-header
option, youtube-dl will be able to access the video and download it.
Here's one way to do it in Chrome:
In your web browser, login to Facebook as normal
Open Chrome Developer Tools
Reload the page
In Developer Tools, switch to the Network tab and scroll up to the first request
Right click the first request and select Copy as cURL
Paste the cURL command line into a text editor and look for the cookie header information. You're looking for the part directly that looks like
-H 'cookie: <...>'
. Copy everything within the quotes.From a terminal, run
youtube-dl
, adding the cookie information using--add-header
:youtube-dl "<url-of-facebook-video>" --add-header '<cookie-header-from-curl>'
youtube-dl will now be able to access the page and retrieve the video.
-
Does this still work? It does with public videos, but not private ones. With youtube-dl 2020.11.01.1 all I get is
Cannot parse data
. Precisely which request should I copy the cookie from? What does that cookie look like?– vctlsNov 4, 2020 at 11:06 -
1
-
ended up using,
--cookies
and downloaded the cookies for my fb browser tab using the cookies.txt browser ext.– ipatchJul 6, 2021 at 19:17 -
I was able to download a non-public video this way. I used the cookies from the request to the www.facebook.com user page. I also copied the user-agent header.– rescdskNov 16, 2021 at 16:32
Here is the simplest way to download Facebook video that doesn't require visiting another website or installing/downloading any software before hand.
- Visit the Facebook page that shows the individual video
- Replace the "www." part of the address in the browser's URL/address bar at the top of the browser with "touch." then press Return/Enter and that will load the mobile version of the page.
- Play the video, then "right click" the mouse on the video and you should have an option to "Save Video"
- Click "Save Video"
-
1This still works, somewhat. Right-click doesn't, but you can get the URL from the inspector. Not sure how to change video resolution though.– vctlsNov 4, 2020 at 10:58
-
1Works in 2020. NICE ONE!! …change subdomain to
touch
then you have to start playing the video first, then right-click andOpen Video In New Tab
… then go to that tab and right-click toSave Video As…
— no need for youtube-dl or extracting cookie header or going into dev tools. Nov 5, 2020 at 5:24
I'd suggest you to install apps from any of the two listed methods below... If you don't prefer installing firefox, then I'd recommed jDownloader.
METHOD 1: Flashgot addon for Firefox
I'd recommend FlashGot Add-on for this (Firefox Browser Add-on)
- Download Firefox Portable (Browser)
- Unzip via setup—the portable version won't change any registry. And you can simple delete the folder once your video is downloaded or once you've finished downloading all the videos.
- Open Firefox and go to this URL: http://flashgot.net/
- Install the FlashGot plugin on your Firefox and restart it for the plugin to activate.
- Once plugin activated, go to your Facebook video page, and start streaming the video.
- Once streaming, you'll notice a small video icon at the bottom of the page in Firefox.
- You should click on the icon for a download window to appear, from where you can download the video.
- Alternatively, once streaming, you can click on Tools → Flashgot → Flashgot Media(1) and download your video.
- FlashGot is only supported in Firefox, and not in Chrome. FlashGot also supports download managers like Flashget, Free Download Manager, and Download Accelerator. Default Settings would work for these download managers, and no extra setup is required, if they're installed on your PC.
Screenshots : FlashGot Method - Step 6 ] & Step 8
METHOD 2: jDownloader
Also, if you don't prefer installing a browser, you can install jDownloader.
- jDownloader is an Open Source download manager which lets you download any video/music/file*.* from almost any source. It's GUI is quite good, and you can add your file hosts accounts for free or paid downloads.
- In your case, you can add your Facebook account to it, and just copy the Facebook video URL to the clipboard.
- Once copied, the video will automatically be parsed by the jDownloader, and you can download it from there.
Screenshot of Adding Account for Facebook. jDownloader treats both free and paid accounts as premium.
Go to private Facebook downloader;
Open Facebook video, right click on the page and copy whole source;
Paste it in the private Facebook downloader's text box and click download.
-
1you are just giving the source code of a private page (that may contain sensitive information) to an unknown, untrusted website. do you think it is safe? Oct 13, 2015 at 16:20
I use Facebook video Downloader Chrome extension to download all public/private Facebook videos. You can get it from the Chrome web store.
-
Can you expand on that a bit? How does this solve the problem. How do you use it? This may help: Best practices for recommending a web app or other tool– aleAug 22, 2016 at 14:09
youtube-dl
will still work, it just needs the right cookie values to be able to access the video. Use your browser's dev tools to determine the cookie header and add it to the youtube-dl command with the--add-header
option.