COMMUNITY
Push Message/Broadcast API to FB Messenger
almost 4 years ago by Pasupathi
How do I send push messages from my application to the bot connected to Messenger?
I tried the Snatchbot API with the URL: https://account.snatchbot.me/channels/api/api/idxxxxx/appsnatchbot/apsyyyy
with 'xxx' and 'yyy' replaced with my App ID and secret, and the following body:
{"message": "Some text that you want to send bot"}
However no message is being sent to FB Messenger. The CURL also returned no error, but strangely returned the following JSON:
{"cards":[],"messages":[{"message":"Hello ,\n","speech":""},{"message":"May I know your preferred language?\n\nBoleh saya tahu pilihan bahasa ?","speech":""}],"status":true,"suggested":["English","Malay"]}