Facebook-chat-api: Messages with URLs failing to callback

Created on 8 Mar 2017  路  7Comments  路  Source: Schmavery/facebook-chat-api

I'm running into issues when messages include urls. The symptom is that I'm not receiving a callback and I traced the issue all the way back to src/listen.js line 144 in that if messenger catches a link and then shows the preview pane the attach_type is 'share' instead of 'photo'.

For my usage, I don't need anything fancy, I just want the message body. But I could imagine other people wanting other metadata about this share.

Most helpful comment

After a little tinkering, I added this after line 151. It works as far as I can tell

} else {
globalCallback(null, utils.formatDeltaMessage(v));

All 7 comments

After a little tinkering, I added this after line 151. It works as far as I can tell

} else {
globalCallback(null, utils.formatDeltaMessage(v));

Looks like some people ran into the same problem and used your solution, so thank you! Do you think you could submit a quick PR with the fix?

@ianw11 Can you verify that this is fixed by #416?

Seems to be ok, I receive attachments of type "share".

woo, thanks @erdnaxeli

Maybe could we have a new release now this is fixed? :cat:

@erdnaxeli I think yes

Was this page helpful?
0 / 5 - 0 ratings

Related issues

standnguyen197 picture standnguyen197  路  4Comments

thaspoom picture thaspoom  路  5Comments

MikeShi42 picture MikeShi42  路  9Comments

nripendra picture nripendra  路  8Comments

ezaca picture ezaca  路  3Comments