fbchat-dev/fbchat

Cannot login with 2FA when subject to Facebook checkup flow

Open

#359 ouverte le 16 nov. 2018

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Python (406 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (1 210 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Description of the problem

Logging in fails when 2FA is enabled and Facebook requires a Facebook checkup flow.

Code to reproduce

from fbchat import Client
client = Client('<username>', '<password>')

Traceback

Logging in <email>...
Please enter your 2FA code -->
Submitting 2FA code.
Saving browser.
Starting Facebook checkup flow.
Verifying login attempt.
Saving device again.
Attempt #1 failed, retrying
Please enter your 2FA code -->

Environment information

  • Python 3.7
  • fbchat version 1.4.1

Guide contributeur