-
Notifications
You must be signed in to change notification settings - Fork 596
Listen issues #763
Comments
Actually, I've tried to pick up the example code and run it as vanilla as possible and it is still unable to react when someone sends a message to any thread. Thanks |
I'm also experiencing this issue – my listen handler is no longer receiving messages. There was a Messenger outage yesterday; perhaps this is related? |
I have the same issue too. I think they now use websockets only. I think they are using a MQTT over websockets protocol. |
I did try this one but still the same problem |
I have the same issue too. |
I also have the same issue. |
If anyone has time, they could experiment with hooking up something like https://www.npmjs.com/package/mqtt maybe |
@Schmavery |
I'll try to get a PR ready when I can. |
Stopped working today |
for now i think that this could work as a replacement until the issue is resolved |
PR is ready. Waiting to be merged. |
@7osCraft I have this error on login:
And listening doesn't work. This error is not showing on API from @Schmavery repo using the same code. |
@KMatuszak do an |
Listen is still not working for me, even with @ac-opensource's fix. |
For me it works after @ac-opensource fix, but it looks like listenMqtt is listening by default for everything, not only for messages. |
@KMatuszak yeah sorry will fix that |
Issue fixed. |
@KMatuszak Please tell me if you find any errors. |
@AstroCB is there any logs you could provide? |
Everything works fine now for me 🙂 |
@7osCraft Out of curiosity, I will ask if these changes related to MQTT can have any effect on the speed of message capture? After these changes my bot responds much faster. |
Shouldn't we just replace the listen function with mqtt? The .listen() is obsolete anyway now and they work basically in the same way. |
I actually take that back, .getUserInfo() now only returns an array of ids i submitted
|
@7osCraft Maybe merge not yet. How to use this? |
I think that facebook is sending data in a different way now, I can try inspecting it later |
@KMatuszak |
@KMatuszak Pushed an update. Could you please try now? |
Yup, but i need some time to make sure the error will not occur again. |
Now it spams JSON's in the console 😛 |
Yeah that was a mistake I need to fix it |
@KMatuszak All good now please install again and sorry for that |
Now everything is working perfectly, thank you 🙂 |
@7osCraft Edit 1: i trying run until now is 4 hour without any error, why? |
i use this, and this hapend
but the bot working fine |
This message shows up when youre accessing something that Facebook doesnt allow you to |
yey no more err spam and bot run faster! ty! 👍 |
|
@kentnek Make sure listenEvents is set to true in the options. |
@7osCraft it's always been api.setOptions({
logLevel: "warn",
listenEvents: true,
forceLogin: true
}); |
EDIT : i reinstall 7osCraft/facebook-chat-api , work again..
no error output |
The pull has been merged already if some of you didn't notice. (#765) The issue should be still open so we can report any new bugs with Mqtt. |
UPDATE: nevermind, it turned out I need to update my fb account's password.
|
This just happened out of nowhere
|
@PixelHir It's weird now that some fields change in the data that facebook sends. I'll look into that as soon as I can. |
Page on MQTT is not working yet. |
I'll be more than happy to help on MQTT code, we've been working on Android MQTT version for some time and compared to that, the browser one seems much easier. |
Currently, the listen method has different from the browser. |
Hi,
Did anyone notice some change in behaviour on facebook's end? I have an api.listen on my code and it was working just fine and all of the sudden it stopped.
Any code that that I place in the callback doesn't get executed when a message is received. This code was working fine just a few days ago and now, nothing.
There's no errors provided, so I'm at a loss on how to go on the troubleshooting and how to fix this.
Thanks!
The text was updated successfully, but these errors were encountered: