fbchat-dev / fbchat-dev/fbchat

Can't Log in

Open
#660 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

I'm trying to log in, but I can't
The code is:
from fbchat import Client
from fbchat.models import *
if not client.isLoggedIn():
client = Client('PHONE', 'PASS')

The Traceback:
Logging in PHONE NUMBER...
Attempt #1 failed, retrying
Traceback (most recent call last):
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_client.py", line 205, in login
self._state = State.login(
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_state.py", line 151, in login
return cls.from_session(session=session)
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range
( then it retries 3 more times )
IndexError: list index out of range
Traceback (most recent call last):
File "O:\P\Messenger_script.py", line 3, in
client = Client('PHONENUMBER', 'PASSWORD')
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_client.py", line 103, in __init__
self.login(email, password, max_tries, user_agent=user_agent)
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_client.py", line 205, in login
self._state = State.login(
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_state.py", line 151, in login
return cls.from_session(session=session)
File "C:\Users\MemeB\AppData\Local\Programs\Python\Python310\lib\site-packages\fbchat\_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range

Python 3.10.0
Fbchat 1.9.7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.