user1507970
user1507970

Reputation: 11

How can I get back the attachment using the attachment_id received from Facebook api?

I'm developing a chatbot using the Facebook API. I sent an image successfully using the example provided in the Facebook API documentation, and it returned an attachment_id as expected. I also was able to use that ID in one or more messages without problems.

I'm wondering if there is something like a CRUD for the attachments. Is there?

How can I get the attachment back using that ID?

Here is the link to the doc: https://developers.facebook.com/docs/messenger-platform/reference/attachment-upload-api

Upvotes: 1

Views: 633

Answers (2)

shamaseen
shamaseen

Reputation: 2488

You can get back the attachments using this API

https://developers.facebook.com/docs/graph-api/reference/v16.0/message/attachments

Upvotes: 0

Azizul Hakim
Azizul Hakim

Reputation: 154

If you set is_reusable = true, then you can use the attachment to other recipients. But you can not edit the attachment or get the attachment back. Though, you can always send the attachment to yourself and view it from there.

Upvotes: 0

Related Questions