marcelja / facebook-delete

Fast facebook activity deletion
MIT License
1.28k stars 48 forks source link

Failed to login #10

Closed dbaccello closed 3 years ago

dbaccello commented 3 years ago

`xxxxxxxxx@xxxx:~/Downloads$ ./deleter-linux ? Please type your email xxxxxxxxxxxxxxxx ? Please type your password ***** Attempting Login... panic: Failed to login

goroutine 1 [running]: main.newFbLogin(0xc000097010, 0x0) /Users/marceljankrift/facebook-delete/deleter.go:102 +0xdd main.main() /Users/marceljankrift/facebook-delete/deleter.go:394 +0x42`

marcelja commented 3 years ago

Are you able to login on https://mbasic.facebook.com/? Sometimes facebook wants some additional information for security purpose. And do you have 2FA disabled?

rworang commented 3 years ago

Are you able to login on https://mbasic.facebook.com/? Sometimes facebook wants some additional information for security purpose. And do you have 2FA disabled?

I'm having the same issue, I first tried on Win 10 and it just exited, I then tried it on Ubuntu-20.04 using WSL and I get the same response as original poster here.

I don't have 2FA and am able to login on the mbasic URL.

-edit- The first time I entered the wrong password and then it posted the same error so I think it has something to do with the login process

I checked the facebookLoginUrl in the source code and it sends me to a page where I can choose my saved account, I'm not familiar with GO but I think the login function is trying to enter form data but there is no form. Maybe the facebookLoginURL needs to be changed to https://mbasic.facebook.com/login/?ref=dbl&fl (this is the URL when clicking Log in to another account on the original URL page) ?

-edit2- Nevermind I tried changing it and running it but it doesn't work, not sure if I did it properly I tried it with the cloning method from your readme, again I'm not familiar with GO.

marcelja commented 3 years ago

Hm, yes, I'm also having the problem. When I'm observing the network requests while logging in using a browser, it looks like the old login URL and parameters are still used.

But something was definitely changed. It's probably related to this saved account selecting. I can not remember that this existed when I implemented this. I'll try to look into this in the next days.

rworang commented 3 years ago

The error also references line 102 so it might be the cookiejar thing

marcelja commented 3 years ago

I just tried to understand the login process. What I saw is that everytime I'm deleting the cookies in my browser and login with the correct email and password, it responds with

Your Request Couldn't be Processed
There was a problem with this request. We're working on getting it fixed as soon as we can

The response headers include some new cookies. Afterwards, I'm able to login successfully.

I didn't manage to login using curl/go yet. They probably expect some additional request headers or form data.

marcelja commented 3 years ago

Ok, I managed to login using curl.

marcelja commented 3 years ago

Login should work now. I also updated the binaries.

rworang commented 3 years ago

It seems to be working now, thanks for the fix!

dbaccello commented 3 years ago

Thanks it also works to me on Ubuntu 20.10