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

Could not find fb_dtsg #654

Open
CunningBard opened this issue Nov 5, 2021 · 0 comments
Open

Could not find fb_dtsg #654

CunningBard opened this issue Nov 5, 2021 · 0 comments

Comments

@CunningBard
Copy link

I'm new to fbchat 2.0.0a2, I didn't get any problems from using 1.9, I don't know if it's just me being a dumb or just not knowing a Important info

Code to reproduce

import fbchat
import Essentials.esen

print(fbchat.__version__)

session = fbchat.Session.login(Essentials.esen.email, Essentials.esen.password)
client = fbchat.Client(session=session)


def my_function(Event: fbchat.MessageEvent):
    print(f"Message from {event.author.id}: {event.message.text}")


listener = fbchat.Listener(session=session, chat_on=False, foreground=False, sequence_id=None, sync_token=None)
# Pycharm please shut up about sequence_id

for event in listener.listen():
    if isinstance(event, fbchat.MessageEvent):
        my_function(event)

Traceback

2.0.0a2
Traceback (most recent call last):
  File "D:\GameDev-Programming\Python\Messenger\Messenger Bot 2.0\main.py", line 6, in <module>
    session = fbchat.Session.login(Essentials.esen.email, Essentials.esen.password)
  File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\fbchat\_session.py", line 250, in login
    return cls._from_session(session=session)
  File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\fbchat\_session.py", line 317, in _from_session
    raise _exception.NotLoggedIn("Could not find fb_dtsg")
fbchat.NotLoggedIn: Could not find fb_dtsg

Environment information

  • Python version 3.9.5
  • Fbchat Version 2.0.0a2
aiohttp==3.7.4.post0
altgraph==0.17
appdirs==1.4.4
arcade==2.5.7
asgiref==3.3.4
async-timeout==3.0.1
attrs==21.2.0
bcrypt==3.2.0
beautifulsoup4==4.9.3
bs4==0.0.1
certifi==2021.5.30
cffi==1.14.6
chardet==4.0.0
click==7.1.2
cycler==0.10.0
dearpygui==0.8.0
discord==1.7.3
discord.py==1.7.3
distlib==0.3.2
Django==3.2.4
dnf==0.0.1
dnspython==2.1.0
docutils==0.17.1
email-validator==1.1.3
fbchat==2.0.0a2
filelock==3.0.12
Flask==2.0.1
Flask-Bcrypt==0.7.1
Flask-SQLAlchemy==2.5.1
Flask-WTF==0.15.1
future==0.18.2
gitdb==4.0.7
GitPython==3.1.18
greenlet==1.1.1
idna==2.10
itsdangerous==2.0.1
jedi==0.18.0
Jinja2==3.0.1
Kivy==2.0.0
kivy-deps.angle==0.3.0
kivy-deps.glew==0.3.0
kivy-deps.gstreamer==0.3.2
kivy-deps.sdl2==0.3.1
Kivy-examples==2.0.0
Kivy-Garden==0.1.4
kiwisolver==1.3.1
lxml==4.6.3
MarkupSafe==2.0.1
matplotlib==3.4.2
multidict==5.1.0
numpy==1.20.1
opensimplex==0.3
paho-mqtt==1.6.1
Panda3D==1.10.9
panda3d-gltf==0.13
panda3d-simplepbr==0.8
pandas==1.2.4
parso==0.8.2
pefile==2019.4.18
Pillow==8.2.0
pycparser==2.20
pygame==2.0.1
pyglet==1.5.18
Pygments==2.9.0
pyinstaller==4.2
pyinstaller-hooks-contrib==2021.1
pymunk==6.0.0
PyNaCl==1.4.0
pyparsing==2.4.7
pyperclip==1.8.2
pypiwin32==223
PyQt5==5.15.4
pyqt5-plugins==5.15.4.2.2
PyQt5-Qt5==5.15.2
PyQt5-sip==12.9.0
PyQt5-stubs==5.15.2.0
pyqt5-tools==5.15.4.3.2
pyqtdeploy==3.1.1
PySide2==5.15.2
python-dateutil==2.8.1
python-dotenv==0.18.0
pytiled-parser==0.9.4a3
pytz==2021.1
pywin32==301
pywin32-ctypes==0.2.0
PyYAML==5.4.1
qt5-applications==5.15.2.2.2
qt5-tools==5.15.2.1.2
requests==2.25.1
screeninfo==0.7
Shapely==1.7.1
shiboken2==5.15.2
simpy==4.0.1
six==1.16.0
smmap==4.0.0
soupsieve==2.2.1
SQLAlchemy==1.4.22
sqlparse==0.4.1
toml==0.10.2
typing-extensions==3.10.0.0
urllib3==1.26.5
ursina==3.6.0
virtualenv==20.4.7
watchdog==2.1.3
Werkzeug==2.0.1
WTForms==2.3.3
yarl==1.6.3
youtube-dl==2021.6.6
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

1 participant