Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook locks my account (requiring that I change my password) after I download a Facebook video #18978

Open
rsfinlayson opened this issue Jan 24, 2019 · 12 comments

Comments

@rsfinlayson
Copy link

@rsfinlayson rsfinlayson commented Jan 24, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.01.24. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2019.01.24

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [ x] Searched the bugtracker for similar issues including closed ones
  • [ x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • [ x] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue



If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Downloading videos from Facebook (with --username --password ) works OK, but soon afterwards, Facebook locks my account, saying:
"We’ve detected suspicious activity on your Facebook account and have temporarily locked it as a security precaution. It’s likely that your account was compromised as a result of entering your password on a website designed to look like Facebook."

This requires me to change my Facebook password each time this happens.

It appears that Facebook is somehow detecting youtube-dl downloads, and flagging them as 'suspicious'.

@ealgase
Copy link
Contributor

@ealgase ealgase commented Jan 24, 2019

Facebook has complex phishing protection and it won't be easy to work around this. I'd recommend using --cookies with an export of your Facebook cookies.

@mandree
Copy link

@mandree mandree commented May 25, 2019

Would it work to use "App passwords" or whatever the English version of facebook calls it?

Apparently I cannot login with an App password through youtube_dl if I create one (using Git version 25b83c2 on Fedora 30), I only get (note the URL is made up):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--no-call-home', u'--cookies', u'cookie_jar.txt', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'--verbose', u'https://www.facebook.com/some.friend/videos/1237891234567890/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.05.20
[debug] Python version 2.7.16 (CPython) - Linux-5.0.16-300.fc30.x86_64-x86_64-with-fedora-30-Thirty
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3
[debug] Proxy map: {}
[facebook] Downloading login page
[facebook] Logging in
WARNING: unable to log in: bad username/password, or exceeded login rate limit (~3/min). Check credentials or wait.
[facebook] 1237891234567890: Downloading webpage
[facebook] 1237891234567890: Downloading webpage

And since the video is "for friends only", no joy.

Pidgin (purple-facebookchat) can use app passwords... but seems I need to use the "real" facebook password for youtube_dl.

@xznhj8129
Copy link

@xznhj8129 xznhj8129 commented Jul 23, 2019

Locked out because of this and now it won't let me unlock it because "Sorry, this feature isn't available right now"

@CrimsonGlory
Copy link

@CrimsonGlory CrimsonGlory commented Jan 23, 2020

Just happened the same to me when trying to download a video that required --username and --password params. The video downloaded fine. But 20 minutes later I got logged out from the browser.
Now it ask for a password or social security id scan
youtube-dl version: 2020.01.15

@swestrup
Copy link

@swestrup swestrup commented Feb 16, 2020

Exact same issue here, and to make matters worse, Facebook's system for unlocking an account locked this way is broken and you have to use other resolution methods.

@affinityv
Copy link

@affinityv affinityv commented Feb 16, 2020

Are any of you using Facebook over Tor and the .onion address? That could be part of the problem. I think the cookie idea is probably the best way to deal with this problem AND to keep transport the same (proxy via socks5 Tor or not, but be consistent).

@xznhj8129
Copy link

@xznhj8129 xznhj8129 commented Feb 21, 2020

No, this was over a vpn.

@swestrup
Copy link

@swestrup swestrup commented Mar 31, 2020

I was connecting straight to Facebook. I'll try the cookie trick next time.

@fargiolas
Copy link

@fargiolas fargiolas commented Jun 2, 2020

Same here, straight to facebook (no tor, no proxy, no vpn), always used cookies (it's a private video) downloaded with cookies.txt, tried both with the same cookie and with a new cookie every time after a fresh login. After a couple minutes it locks me out, asks to change password etc. And it goes on for days locking me out several times saying someone might have used my account.

Any idea?

@taslitruba
Copy link

@taslitruba taslitruba commented Jun 16, 2020

Cookies used to be a good workaround. But they don't work anymore - after just one cookie use, Facebook locks me out right away. I think they found some way to detect youtube-dl, and we need to innovate to stay one step ahead.

@TomArrow
Copy link

@TomArrow TomArrow commented Oct 12, 2020

Bump, have the same issue, with both username and password and with the cookies method. Though the cookies method seems to give more time before you get locked out.

@N3WWN
Copy link

@N3WWN N3WWN commented Oct 15, 2020

I’ve run into this issue, also, over the last couple of weeks. I have to use my Facebook login credentials to download videos (I didn’t have to do this before, FB must have changed something) and then FB locks my account after successfully downloading the video. I’ll try the cookies suggestion next time to see if I have any luck with it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.