-
-
Notifications
You must be signed in to change notification settings - Fork 178
Problem logging in #66
Comments
Are you getting a "Save Browser" screen? I think this might be the same issue as this #38 I can look at adding this check to the end of the login function, although I think it might be more robust to do something like: while "login/device-based/regular/login" in driver.getCurrentUrl():
time.sleep(5) That way it isn't depending on the exact query parameters being present. Can you confirm this solves your issue? Better yet, I might change the login function to go to this URL in the first place and avoid this issue, and the need to have a while loop. It seems that if you aren't logged in, this page will reliably give you a login |
I'm going to try altering the login function to go to this page directly, which should hopefully avoid issues with logins. It seems like #38 is a different issue which is going to be a bit more work to solve. |
Fixed in #67 |
This totally fixed it, thank you. Sorry I wasn't much of a help, I'm new to all this, so I couldn't be much help. |
Glad it solved your issue! No problem, and thanks for reporting it :)
…On Sun, Jun 16, 2019, 3:01 PM morris-of-orange ***@***.***> wrote:
This totally fixed it, thank you. Sorry I wasn't much of a help, I'm new
to all this, so I couldn't be much help.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#66?email_source=notifications&email_token=AAC4L342KVI42VS4XEP7OBTP22EXPA5CNFSM4HYPVTMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZTDBI#issuecomment-502477189>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC4L35FG5VVCGJMAY2L5B3P22EXPANCNFSM4HYPVTMA>
.
|
Whenever I run the program, it goes to Facebook, and enters the login information. I copy the email, and URL from a firefox window, and the password from my password manager. It then sends the Chrome window to:
https://www.facebook.com/login/device-based/regular/login/?login_attempt=1&lwv=110
where I reenter the same login credentials (copy-paste) and then it logs in correctly however by then, the program hits an error.
I do not have 2FA enabled
Proposed solution: If it hits this webpage, then check the url every few seconds, until the user inputs the email-password manually and hits login. after that continue running the program
On line 100 of login.py add:
while Driver.getCurrentUrl()=="https://www.facebook.com/login/device-based/regular/login/?login_attempt=1&lwv=110":
time.sleep(5)
The text was updated successfully, but these errors were encountered: