Sending audio to user in Facebook messenger bot

Published: 5/10/2017
Sending audio to user in Facebook messenger bot
Source: STACKOVERFLOW.COM

I'm trying to send audio file to user in Facebook messenger bot using file upload. Official documentation says you can do it through curl command in terminal. This command works: curl \ -F 'recipient={"id":user_id}' \ -F 'message={"attachment":{"type":"audio", "payload":{}}}' \ -F 'filedata=@mymp3.mp3;type=audio/mp3' \ "https://graph.facebook.com/v2.6/me/messages?access_token

Read more
Related news
Comment