skip to Main Content

Upload/Send file to Facebook via Send Api Reference – Facebook api

Here is the curl From Facebook Docs to Upload a file to their servers for sending to the specified user: curl -F recipient='{"id":"USER_ID"}' -F message='{"attachment":{"type":"file", "payload":{}}}' -F filedata=@/tmp/receipt.pdf "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" curl -F 'recipient={"id":"USER_ID"}' -F 'message={"attachment":{"type":"audio", "payload":{}}}' -F 'filedata=@/tmp/clip.mp3;type=audio/mp3' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" I am…

VIEW QUESTION
Back To Top
Search