You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .
The text was updated successfully, but these errors were encountered:
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 .
The text was updated successfully, but these errors were encountered: