You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Facebook just recently added the ability to upload files (images, audio, videos, or a generic file) for a message, instead of having to specify a URL for an attachment.
They all share the same format of it being a multipart POST form, with the file being under the key of filedata. For our sendMessage / reply, we should have some sort of special key in the payload that accepts the same inputs as request does for multipart forms (https://github.com/request/request#forms), and is then added to the request as filedata.
The text was updated successfully, but these errors were encountered:
Facebook just recently added the ability to upload files (images, audio, videos, or a generic file) for a message, instead of having to specify a URL for an attachment.
They all share the same format of it being a multipart POST form, with the file being under the key of
filedata
. For oursendMessage
/reply
, we should have some sort of special key in the payload that accepts the same inputs asrequest
does for multipart forms (https://github.com/request/request#forms), and is then added to the request asfiledata
.The text was updated successfully, but these errors were encountered: