fbchat
fbchat copied to clipboard
Note for others unable to login
Make sure you're using python 3.8 and below (fbchat will not work with 3.9) then change _state line that says " revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])" to revision = 1
works for me
I've printed r.text
, and I can't find 'client_revision' in HTML result, so this is a problem
works for me too, but once the account is logged out the login issue happens. I have python 3.8.2 and revision = 1 and currently cant login.
For reference i'm using python 3.7 and it's working flawlessly for me. sadly i'm not sure what in 3.9 caused fbchat compatibility to break, i'll see if i can figure WHAT caused it to break and then put in a pull request
Running the client in debug mode in Python 3.9.7, and using this revision workaround, seems to work for logging in successfully for me. Note I am using a downgraded user-agent as recommended here: https://github.com/fbchat-dev/fbchat/issues/657#issuecomment-1035900145