0

I'm currently using this document from Meta API to send the file to Messenger via API call https://developers.facebook.com/docs/messenger-platform/reference/attachment-upload-api/

When I'm trying with using the image URL like the document:

enter image description here

I am successfully got the attachment_id like this:

enter image description here

However when I'm using request for an upload from a file that using file path:

enter image description here

I'm trying to doing the same call on Postman using a path from my local machine that lead to an image, but I got error:

enter image description here

Not sure what I go wrong? Could anyone help?

1
  • Not really sure how this is supposed to work. The -d option should cause cURL to send the request with content-type application/x-www-form-urlencoded - but apparently they expect it to be overwritten with application/json. Can't see how that is supposed to make much sense.
    – CBroe
    Commented Jun 7 at 7:47

0

Browse other questions tagged or ask your own question.