Closed harieamjari closed 3 years ago
I have the same exact problem.
A couple of weeks ago I had a similar, but not exactly the same, issue with Facebook. I resolved it as follows. (I don't know if this will work for you, and I don't understand why the coders here haven't commented on this issue.)
Using the yt-dl --username --password option with Facebook caused serious problems for the Facebook account I was using. Once you get that suspicious activity block from FB, you have to go through the steps to remove it before FB will work on any device. You have to prove you are not suspicious using one of the ways they suggest.
The better method for downloading private or other videos that seem to want a login on yt-dl is to use the --cookies option. This has worked for me and has never caused FB to start blocking my login even when --cookies hasn't worked. Others here have cautioned about using --username --password. I would advise against using it with Facebook.
To use --cookies, you have to make a text file from the cookies stored in the browser in which you have recently (within a few hours) logged in successfully on FB. Then put --cookies PathToCookie-text-file\name-of-cookie-text-file in your yt-dl command.
There are many little addons or programs that make a text file from cookies in various browsers. I use an addon in Firefox that is very simple and works well: cookies.txt 0.1 by Lennon Hill https://github.com/lennonhill/cookies-txt. This places a button on Firefox that when clicked makes a cookies.txt file wherever you want to save it to.
I also use Termux on Android. I make the cookies.txt file on a desktop and copy it to the tablet root directory and then, on the mobile device, copy the file into Termux's file system. It works, but I don't know if mobile Firefox can use the addon to make the cookie file.
A couple of weeks ago I had a similar, but not exactly the same, issue with Facebook. I resolved it as follows. (I don't know if this will work for you, and I don't understand why the coders here haven't commented on this issue.)
Using the yt-dl --username --password option with Facebook caused serious problems for the Facebook account I was using. Once you get that suspicious activity block from FB, you have to go through the steps to remove it before FB will work on any device. You have to prove you are not suspicious using one of the ways they suggest.
The better method for downloading private or other videos that seem to want a login on yt-dl is to use the --cookies option. This has worked for me and has never caused FB to start blocking my login even when --cookies hasn't worked. Others here have cautioned about using --username --password. I would advise against using it with Facebook.
To use --cookies, you have to make a text file from the cookies stored in the browser in which you have recently (within a few hours) logged in successfully on FB. Then put --cookies PathToCookie-text-file\name-of-cookie-text-file in your yt-dl command.
There are many little addons or programs that make a text file from cookies in various browsers. I use an addon in Firefox that is very simple and works well: cookies.txt 0.1 by Lennon Hill https://github.com/lennonhill/cookies-txt. This places a button on Firefox that when clicked makes a cookies.txt file wherever you want to save it to.
I also use Termux on Android. I make the cookies.txt file on a desktop and copy it to the tablet root directory and then, on the mobile device, copy the file into Termux's file system. It works, but I don't know if mobile Firefox can use the addon to make the cookie file.
Sounds like more extra step instead of a simple one.
Checklist
Verbose log
Description
When trying to download a video from a private group, I would need atleast to login with my password and username for me to access those video. When trying to download those video (here on Termux app) I get an error from youtube-dl and facebook would prompt a verification on google chrome.