bitlbee-facebook icon indicating copy to clipboard operation
bitlbee-facebook copied to clipboard

Support Login Approvals

Open coxley opened this issue 9 years ago • 8 comments

Facebook has support for 2FA in the way of "Login Approvals". This bitlbee plugin should support this:

facebook - Logging in: Authenticating                                                                    
facebook - Login error: Login approvals are on. Expect an SMS shortly with a code to use for log in (406)
facebook - Logging in: Signing off..                                                                     

coxley avatar Apr 28 '16 21:04 coxley

It "supports" it

account facebook set password 123456
account facebook on

andreimarcu avatar Apr 28 '16 21:04 andreimarcu

That would override the regular account password yeah?

coxley avatar Apr 28 '16 23:04 coxley

Yeah, alternatively you can just use app passwords

dequis avatar Apr 29 '16 13:04 dequis

As a note, setting the regular password, attempting login, then attempting again after changing the password in BitlBee to the SMS code appears not to work any more. Facebook sends an "Invalid username or password (401)" error now.

An app password appears to be the only way to log in if one has 2FA enabled, now.

dgw avatar Jul 08 '19 06:07 dgw

Workaround: disable 2FA, login with bitlbee, reenable 2FA

dithpri avatar Oct 14 '19 02:10 dithpri

Just a heads up - the app password section has apparently disappeared from the settings. Is there any other way to get a FB app key?

blacklight avatar Nov 18 '21 20:11 blacklight

Yeah, workaround: auth with this python script and account facebook set token <the access token you got from there>

dequis avatar Nov 19 '21 13:11 dequis

Hello. I think I solved this.

Patch: https://github.com/usvi/bitlbee-facebook/commit/31b56ec07d8b1682a15e1dde114810140dddcb4e

How it works: https://github.com/usvi/bitlbee-facebook/issues/1#issuecomment-1186268820

@dequis : Do you happen to have any info about how to proceed? Or someone else?

Edit: (Indentation was a bit wrong, fixed it in the next commit. I better start using M-x whitespace-mode by default in my emacs.)

Edit2: Put the thing in new branch for easy merging.

usvi avatar Jul 17 '22 15:07 usvi