diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 87869fcfcf..4fa0012a71 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -395,7 +395,9 @@ def _perform_login(self, username, password): try: login_results = self._download_webpage(request, None, note='Logging in', errnote='unable to fetch login page') - # TODO: Request couldn't be processed is returned always + if self._html_search_regex(r'(Your Request Couldn.+? be Processed)', login_results, "request error", default=None) is not None: + raise ExtractorError('Failed to perform login request. Report a bug.') + if re.search(r'