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

Messer not displaying incoming messenges. #137

Closed
wgehalo opened this issue Dec 17, 2019 · 4 comments · Fixed by #153
Closed

Messer not displaying incoming messenges. #137

wgehalo opened this issue Dec 17, 2019 · 4 comments · Fixed by #153
Labels

Comments

@wgehalo
Copy link

wgehalo commented Dec 17, 2019

Description

Messer is not displaying incoming messages. They are present when checking the thread history however. This is on Windows 10 64, using the latest updates as of 12/17/19.

I have tested it on the command prompt, and ps core 6 inside of windows 10's new terminal.

Steps to Reproduce

  1. Install messer following the guide.
  2. Login.
  3. Have friend send you message.

Expected behavior: [What you expect to happen]
Incoming message should display.

Actual behavior: [What actually happens]
Incoming message does not display.

Versions

Run and copy-paste the results of the following:
npm: 6.13.1
node: v13.3.0
messer: 0.7.1

Windows 10, 64 bit.

@tomquirk
Copy link
Collaborator

Thanks for reporting this @wgehalo, it looks like it could be related to this issue report on the api we use, but I'll check it out.

@tomquirk tomquirk added the bug label Dec 22, 2019
@michondr
Copy link

this bug seems to be critical, the same problem has inpact on fb-messenger-cli issued here
Alex-Rose/fb-messenger-cli#220

@Ryjekk
Copy link

Ryjekk commented Apr 8, 2020

I have still same issue

npm: 6.13.1
node: v13.3.0
messer: 0.7.1

macOS Catalina 10.15.4

@ethan-ou
Copy link
Contributor

ethan-ou commented May 1, 2020

Same issue. It looks like it's because of the API changes Facebook made recently to move messenger to using MQTT (a type of messaging protocol like WebSockets).

I had a look at the issues in the facebook-chat-api repo as @tomquirk linked and found the library was depreciating its api.listen method in favour of api.listenMqtt (see issue #786 in facebook-chat-api). The change looks to be a drop-in replacement, so it looks like all we'll need to do is change the line in Messer where this API is being used.

I did some testing locally to try this. The api.listen method is used in the messen library on line 139. After changing this line to api.listenMqtt, it looked like incoming messages were being displayed properly.

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

Successfully merging a pull request may close this issue.

5 participants