I am looking to optimize my POST request with the Facebook API by sending two messages at once. Below is the JSON message data structure I am currently using:
var messageData = [{
recipient: {
id: recipientId
},
message: {
text: "a"
}
},
{
recipient: {
id: recipientId
},
message: {
text: "b"
}
}];
While I am able to successfully send one message, I encounter difficulties when attempting to send an array of messages. Are there alternative methods or workarounds I could use to achieve the desired outcome of sending two messages in a single request? I am working within the Facebook Messenger Platform.