Facebook-chat-api: Cannot receive messages using listen

Created on 27 Apr 2016  路  14Comments  路  Source: Schmavery/facebook-chat-api

Hi!
I can no longer receive messages using listen.
More specifically I can't get the contents of body which is the message content.
I can still get all other information such as threadyID, userID etc.
I can still receive mesages on messenger/facebook but not using the API.
I forgot to mention that I can still send messages as usual using the API.

Most helpful comment

(sorry I deleted my previous comment as it was on the wrong issue :p)

All 14 comments

Maybe because the new delta messaging. This is under progress feature.

Contributions are welcome :-)

canyou be more precise? Delta messaging?

I'll see if I can do stuff aboutit, altough the API is lastest version

What do you mean you can't get the body? Is it always empty? Ask @GAMELASTER said try turning deltaMessages off by calling api.setOptions({disableDelta: true})

oh wait, my bad, this is no longer a thing. Try synching the repo to this commit 22b47ad93231af96bea37ae5fda12f389e31a65e (by changing your package.json's dependency on facebook-chat-api to be "git://github.com/schmavery/facebook-chat-api.git#22b47ad93231af96bea37ae5fda12f389e31a65e").

@bsansouci I have no idea how to do that, im still fairly new to NPM and NODE, but I'll google it and tell you guys how it went.

I already did that, I got the message content in msg: "blablabla".
However I don't know how to update the code to mirror that, neither do I know hoe to change json depency

(sorry I deleted my previous comment as it was on the wrong issue :p)

where is the package.json for facebook API located in windows?

You need to change your project's package.json, which would be at the root of your project.

I see, so from Visual studio.

Weird, I did not do anything but it's working again.....

Nice! Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StevenSuh picture StevenSuh  路  8Comments

GEOFBOT picture GEOFBOT  路  4Comments

ravkr picture ravkr  路  7Comments

WaffleCohn picture WaffleCohn  路  6Comments

tomekb530 picture tomekb530  路  6Comments