-
Notifications
You must be signed in to change notification settings - Fork 412
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
Login failed #477
Comments
I could reproduce this the first few times but now I can't and I login successfully. |
"/gettingstarted" is the url for a page with some intructions for setting up your account (like adding contacts or a mobile number), it only appears on new accounts so it goes away after a few attempts. If you want to make it go away, you have to visit the url directly and click next a few times, on next start it should log in correctly I now think that detecting this url (maybe skipping it automatically?) might be a good idea, I'll try to code that if I have the time |
Hi There! I've a similar issue. However I want to move my fbchat program to another computer with the same credentials. The login is successful at my original place (old computer), and it doesn't login on the other one (new computer). Any idea? Thank you: Herre is the error message: |
Hi @FeZoli. The best suggestion I can give you is to try copying the session cookies over. An example would be something like this: # On the old computer, run
import json
import fbchat
client = fbchat.Client(USER, PASSWORD)
cookies = client.getSession()
with open("session.json", "w") as f:
json.dump(cookies, f)
# After copying the session.json file to the new computer, run
import json
import fbchat
with open("session.json") as f:
cookies = json.load(f)
client = fbchat.Client(USER, PASSWORD, session_cookies=cookies) |
the post request url is different for login in _state.py:
i login successfully with this post url i found but pullchannel not working so idk how to get retrieve messages. |
Many thanks, but my client doesn't work anymore in any of my instances. So, I don't have a session cookie. |
I have the same problem... The error message finishes like this: fbchat._exception.FBchatUserError: Login failed. Check email/password. (Failed on url: https://m.facebook.com/checkpoint/?_rdr) For some reason it keeps redirecting me to the identity check, is there any solution to this? It is really annoying because it also affects my browser... |
Happen to me too.
First time log in everything is fine.
session.json is also has data Second time
|
@chalermporn17PPA, this might be a separate issue; can you try adding the following code and test it again? import logging
logging.basicConfig(level=logging.DEBUG) |
This is my program's log.
|
Hmm, might be something wrong with |
Did you, by any chance, closed the client? |
I tried it. get same error.
|
@lengors |
Hmm, if the code that u posted is everything that u have, then u didn't call client.close(), which means it should work... |
@chalermporn17PPA Do you have an up to date version of fbchat? Also, try to not specify the user agent when cookies are detected |
is Work !! Thank you very much. |
U're welcome 🙂 |
my account getting locked on sending new message can you tell what to write in code to fix it
|
is there anyway how to login if we got a checkpoint ?
|
There’s 2different issues in here which would probably make more sense being split up.
Assuming we’re talking about 1), you need to clear the checkpoint on where you’re running the bot using a browser (see #225 ) |
Not sure if this is the same error but.. Problems started about the same time as Facebook stopped allowing users to use messenger without facebook.
|
Hi @kragebein, my initial assesment is that you have a wrong dependency. But it looks like you're using |
I can't login with or without cookies. Code I'm using:
Error I'm getting:
I was able to login with the same code 2 days ago from PC. But then was getting the same error (with the same code) on Termux (Android) with Python 3.8.2, but not on PC running Python 3.7. How to fix this? |
I can't login. I clear the checkpoint on my every device and browser.
error: Thankyou everyone |
v.1.9.7 - Can Login but EchoBot() showing connection lost after listening maybe some fb url have changed |
who can fix?? |
Please enter your 2FA code --> 048113 |
How to hacking id |
I tried this and if i put right credentials it always write that i have wrong password
Used example echo bot
Environment information
fbchat
version - that one from pip install fbchatPackage Version
aenum 2.1.2
attrs 18.2.0
beautifulsoup4 4.7.1
certifi 2019.6.16
chardet 3.0.4
fbchat 1.7.0
idna 2.8
pip 19.1.1
requests 2.22.0
setuptools 40.8.0
soupsieve 1.9.2
urllib3 1.25.3
The text was updated successfully, but these errors were encountered: