fbchat-dev / fbchat

Facebook Chat (Messenger) for Python
https://fbchat.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.19k stars 412 forks source link

Logins broken again as of 6/23/2017 #162

Closed amplogik closed 7 years ago

amplogik commented 7 years ago

Similar to a problem from last month, suddenly fb logins do not work anymore.

Have tried with a number of accounts, and all result in output like the following example (user and pass masked)

It seems something has changed again.

Using latest fbchat-1.0.1

Example: user@wwwserver# ./echobot.py Logging in ... Traceback (most recent call last): File "./echobot.py", line 21, in bot = EchoBot("", "") File "./echobot.py", line 8, in init fbchat.Client.init(self,email, password, debug, user_agent) File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 73, in init self.login(email, password, max_tries) File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 318, in login raise Exception('Cannot login: max_tries should be at least one') Exception: Cannot login: max_tries should be at least one

madsmtm commented 7 years ago

A lot of fbchat's code has been updated in the new version, you're probably passing 0 to the parameter max_tries somewhere. Check out the documentation

Also, next time, remember to include some of your code ;)