I am currently using the facebook bulk api to send multiple messages to users (messenger api) with the following request (access tokens and user ids are censored):
curl \
-F "access_token=XXXXXXX" \
-F 'batch=[{"method":"POST", "relative_url":"me/messages","body":"message=%7B%27text%27%3A+%27AAA%27%7D&recipient=%7B%27id%27%3A+XXXXXXX%7D"}, {"method":"POST", "relative_url":"me/messages","body":"message=%7B%27text%27%3A+%27BBB%27%7D&recipient=%7B%27id%27%3A+XXXXXXX%7D"}, {"method":"POST", "relative_url":"me/messages","body":"message=%7B%27text%27%3A+%27CCC%27%7D&recipient=%7B%27id%27%3A+XXXXXXX%7D"}]' \
https://graph.facebook.com/
What I expect are three messages, in order "AAA", "BBB", "CCC". When executing the query multiple times, the messages are delivered in random order which makes using the bulk api for sending multiple messages to one user pretty useless.
If I understand the paragraph cited below correctly, the requests should be executed in order, which obviously is not the case.
The ordering of responses correspond with the ordering of operations in the request, so developers should process responses accordingly to determine which operations were successful and which should be retried in a subsequent operation.
Is there anything I am doing wrong or is this an error on facebook's side?