fbchat icon indicating copy to clipboard operation
fbchat copied to clipboard

Problem Logging In

Open benvchurch opened this issue 4 years ago • 3 comments

When I run the sample code:

from fbchat import Client import logging client = Client('', '', logging_level=logging.DEBUG)

I get the following error (replicated on two different machines)

File "/usr/local/lib/python2.7/dist-packages/fbchat/_client.py", line 103, in init self.login(email, password, max_tries, user_agent=user_agent) File "/usr/local/lib/python2.7/dist-packages/fbchat/_client.py", line 209, in login user_agent=user_agent, File "/usr/local/lib/python2.7/dist-packages/fbchat/_state.py", line 149, in login return cls.from_session(session=session) File "/usr/local/lib/python2.7/dist-packages/fbchat/_state.py", line 186, in from_session fb_dtsg = FB_DTSG_REGEX.search(r.text).group(1) AttributeError: 'NoneType' object has no attribute 'group'

p I am running the most recent version of fbchat in python 2.7.17.

benvchurch avatar May 29 '20 22:05 benvchurch

Have you tried logging in manually to the account you are using? Perhaps the account has been locked?

wetmore avatar May 30 '20 16:05 wetmore

Yes, there is no such issue.

benvchurch avatar Jun 01 '20 02:06 benvchurch

Yup the problem is on Facebook's side!

qwertyuu avatar Jun 01 '20 03:06 qwertyuu