fbchat-dev / fbchat-dev/fbchat
Could not find any ServerJSDefine. Please report this, along with the data below
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 403
- PR merge metrics
- No merged PRs in 30d
Description
```
import fbchat
# Log the user in
session = fbchat.Session.login("xxx", "xxx")
print("Own id: {}".format(session.user.id))
# Send a message to yourself
session.user.send_text("Hi me!")
# Log the user out
session.logout()
```
And i have this error :
Traceback (most recent call last):
File "C:\Scrapers\PowiadomienieStockNewOrderMessenger.py", line 4, in
session = fbchat.Session.login("xxx", "xxx")
File "C:\Python39\lib\site-packages\fbchat\_session.py", line 362, in login
return cls._from_session(session=session)
File "C:\Python39\lib\site-packages\fbchat\_session.py", line 419, in _from_session
define = parse_server_js_define(r.content.decode("utf-8"))
File "C:\Python39\lib\site-packages\fbchat\_session.py", line 36, in parse_server_js_define
raise _exception.ParseError("Could not find any ServerJSDefine", data=html)
fbchat.ParseError: Could not find any ServerJSDefine. Please report this, along with the data below!
How can i do to work with that?
Also how can i get user ID to send message? Because above code will send message to my only .
Contributor guide
Assessment
This issue has not been assessed yet.