fbchat-dev / fbchat-dev/fbchat

Another "cannot login" issue

Open
#553 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

## Description of the problem
I am very very new to this but am really keen to access my own FB messenger account to do some basic analysis. I am however getting an error when logging in and even more annoyingly each time FB forces me to change my password to the account.

I have looked at all the other postings here about login issues, tried to replicate what worked for them but with no success.

This is only one example of the codes I used (copied from another thread here) but didn't work

## Code to reproduce
```py
# Example code
from fbchat import Client, ThreadType, Message

client = Client()

async def main():
await client.start("*******", "******")
print(f"Own ID: {client.uid}")
await client.send(Message(text="Hi me!"), thread_id=client.uid, thread_type=ThreadType.USER)
await client.logout()

client.loop.run_until_complete(main())

## Traceback
```
Traceback (most recent call last):
File "", line 1, in
File "[site-packages]/fbchat/client.py", line 78, in __init__
self.login(email, password, max_tries)
File "[site-packages]/fbchat/client.py", line 407, in login
raise FBchatException('Login failed. Check email/password. (Failed on URL: {})'.format(login_url))
fbchat.FBchatException: Login failed. Check email/password. (Failed on URL: https://m.facebook.com/login.php?login_attempt=1)
```

## Environment information
- Python version : google collab, python 3.x

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.