Dhana
Dhana

Reputation: 1658

Facebook Graph API webhook is not sending the GIF image attachments in DMs

I have implemented a messenger bot application to get the Facebook DM's using Facebook Graph API webhooks and send the responses from my application. Webhook is working fine to get the messages, attachments (type: images).

Sample webhook output:

{"object":"page","entry":[{"id":"xxx","time":123,"messaging":[{"sender":{"id":"yyy"},"recipient":{"id":"zzz"},"timestamp":123,"message":{"mid":"id","text":"Sample text!"}}]}]}

{"object":"page","entry":[{"id":"xxx","time":123,"messaging":[{"sender":{"id":"yyy"},"recipient":{"id":"zzz"},"timestamp":123,"message":{"mid":"id","attachments":[{"type":"image","payload":{"url":"<url>"}}]}]}

Issue: Facebook API Webhook is NOT sending the attachment type ".gif" images.

{"object":"page","entry":[{"id":"xxx","time":123,"messaging":[{"sender":{"id":"yyy"},"recipient":{"id":"zzz"},"timestamp":123,"message":{"mid":"id"}}]}]}

Upvotes: 0

Views: 668

Answers (1)

FrIgGeR
FrIgGeR

Reputation: 11

I have the same problem. All of my facebook pages that connect to the facebook app is stop sending an attachments. So in the meantime I use solution that purpose in this post. Hope that facebook will fix this soon.

Upvotes: 1

Related Questions