Skip to content Skip to sidebar Skip to footer

Python Fbchat - Login Failed

I am currently trying to use fbchat (https://github.com/carpedm20/fbchat) to build a small FB-Bot, but I can not login with fbchat. I took the code directly from the examples, but

Solution 1:

Are you running the code on a vps or from an IP address different than the one that you usually use to log in to your Facebook account?

If so, try SSH tunneling through that IP address, and login to Facebook with a browser.

The point is, you need to login to Facebook with a browser from that IP address. There are some verification steps that can only be done with a browser. FB will also ask you to change your password, follow through and do it. Then, your code should be good to go. You might have to do this again after a few hours if your client disconnects, but after 3-4 times, FB will acknowledge the new IP address as "safe" and you'll be all set.

Solution 2:

https://github.com/fbchat-dev/fbchat

as of 23 Sept 2020

"This project is officially marked as unmaintained, since my life is somewhere where I just do not have the time and energy to lead this project. "

I found this error when I expererienced similar problems while trying a demo tutorial.

I would restrict my efforts to a package currently maintained.

Post a Comment for "Python Fbchat - Login Failed"