Skip to content
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

Tt #676

Open
Oswal1234 opened this issue Dec 2, 2024 · 1 comment
Open

Tt #676

Oswal1234 opened this issue Dec 2, 2024 · 1 comment

Comments

@Oswal1234
Copy link

Description of the problem

Example: Logging in fails when the character % is in the password. A specific password that fails is a_password_with_%

Code to reproduce

# Example code
from fbchat import Client
client = Client("[REDACTED_USERNAME]", "a_password_with_%")

Traceback

Traceback (most recent call last):
  File "<test.py>", line 1, in <module>
  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
  • fbchat version
  • If relevant, output from $ python -m pip list

If you have done any research, include that.
Make sure to redact all personal information.

@togashigreat
Copy link

Description of the problem

Example: Logging in fails when the character % is in the password. A specific password that fails is a_password_with_%

Code to reproduce

# Example code
from fbchat import Client
client = Client("[REDACTED_USERNAME]", "a_password_with_%")

Traceback

Traceback (most recent call last):
  File "<test.py>", line 1, in <module>
  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
  • fbchat version
  • If relevant, output from $ python -m pip list

If you have done any research, include that. Make sure to redact all personal information.

Due to the recent changes in Facebook the API doesn't work anymore properly. And to login into your account using Email and Password is harder than before because Facebook will lock your account. But you can login into your account through Facebook Cookies.
I have created a fbchat library based on fbchat v1 . It uses cookies instead of Email and password you can check it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants