-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't login with 2FA on Facebook #9
Comments
Not too sure what the best way to address this would be. Some options I can think of:
None of these are really ideal. If you have other ideas let me know. |
Option 2 might also solve the cookie login problem, I'm willing to try it out to see if that fixes things |
Maybe an user can create an App Password that is unique for this. With app password you haven't to insert the 2FA code |
Same problem over here. Disabled 2FA but I still get the error: "Failed to authenticate with Facebook. Please check provided email/password." |
Hmm I couldn't get their app passwords to work for me either. I don't think they allow directly logging into a Facebook account anyway. It seems like its a different concept to regular 'app passwords' which simply act as login credentials that don't require 2FA authentication. |
I don't know what 2FA is. When I follow your readme I give this error: |
Still can't run the script: PS C:\Users\jonic\Desktop\fb2cal-master_1.0.2\fb2cal-master\src> python .\fb2cal.py I tried to reset all cookies from facebook but I still don't see that banner when I access facebook.com/login.php for the frist time. The cookies stored are: Can you try it with Portugues IP please? |
@ldoench Please avoid commenting on issues if its unrelated. Turn logging level to |
I made a research about this and I found some interesting code that might help to resolve this issue. I think that only saves the cookies when it's successfully autenticated, and that's some kind of what you guys are looking for: https://github.com/pkoenig10/sink/blob/master/sink.py#L106 |
Haven't looked into it much but looks like its just entering an 2FA code into the 2FA prompt. We can do that too but how do we get the code. Does anyone know if the 2FA recovery/backup codes for Facebook are one time uses Storing the 2FA secret within the config seems like a pretty stupid security risk. App passwords don't seem like they will work outside of Facebook API. I'm not sure what the most secure way to fix this issue is tbh but I might add a method that works just for now. |
I mean, Birthday's don't change so often, so this might be a manual solution. This might also work for long terms: Also, I checked if 2FA backup codes are one-time uses, and it looks like they are. Nothing to do with that. |
Using a cookie file seems like the only smart solution at this point. Frankly, I don't know how anyone is willing to use any social network without having 2FA enabled, but that's a subject for completely different conversation. I second the fact that birthdays are fairly permanent events, and the only reason to run this script as a cronjob is if you add/remove a lot of people everyday. |
@ilf-S Cookies are a decent solution. Maybe a JS one liner users can execute while logged into a browser which dumps to a useable pickle format than can be loaded in. Original script was built and designed to be on a cronjob to replicate the original behavior as closely as possible. But yeah running this once may meet a lot of users requirements. |
I thought this was going to be a blocker for me. I started looking into the stored FB cookies to see if I could pull them out to add support to the script. Then realized a much simpler solution. Maybe this is obvious but it took me a bit to realize, hopefully helpful for others:
I don't actively use Facebook any more, so not worried about updates for adding/removing people. If necessary, could repeat the process more frequently. Cheers, thanks for the great script 🎉 |
Just turn it off temporarily, then turn it back on straight away. Security is never a failsafe, only a stopping force anyway. |
Hlo sir |
Hi! Sorry, that is not the goal of this project. |
Sir can you make such a script for me. Plz sir
…On Sun, May 7, 2023, 8:23 AM Mo Beigi ***@***.***> wrote:
Hlo sir can you give me facebook password change script in python. Plz
Hi! Sorry, that is not the goal of this project.
—
Reply to this email directly, view it on GitHub
<#9 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5ZUBETJ6MO4SPAJAGVD5KTXE4ISBANCNFSM4IHEBFXA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Wondering if anyone has had a look at this? My account locks so frequently when I don’t have 2FA enabled unfortunately… |
@maxexcloo As for 2FA no real solution was proposed. Also work on this issue isn't really planned. Most people seem to just disable 2FA, get the birthdays then reenable it. |
Ah I did have a regular export - will just run it manually now I think :) |
If you have 2FA enabled on your Facebook account, you can't login
The text was updated successfully, but these errors were encountered: