fbchat-dev / fbchat

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

Support "app passwords" #545

Open singpolyma opened 4 years ago

singpolyma commented 4 years ago

Description

Facebook has a way to generate "app passwords" so that my devices don't all have access to my main password. When I try to use one of these with fbchat I get a login failure. Using my main account password works.

madsmtm commented 4 years ago

Hmm, not sure if it's possible to support this. It seems like it's more of a legacy way to authenticate apps that interface with Facebook's API.

But maybe someone can tell me more about how "app passwords" actually work, haven't used them myself.

Open for suggestions on how to do this, would be a really nice feature!

PythonNut commented 4 years ago

libfb-js is an example of a similar project (but for JavaScript) which supports app passwords.