Created
August 11, 2018 02:22
-
-
Save HW-Siew/cc23f4f49df21c9e5b8ab8a4a0e571f2 to your computer and use it in GitHub Desktop.
Facebook Batch Requst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# request payload to https://graph.facebook.com | |
{ | |
"access_token": "your access token", | |
"batch": [ | |
{"method":"POST","body":"Send API payload for message 1","relative_url":"\/me\/messages","name":"xGBNS"}, | |
{"method":"POST","body":"Send API payload for message 2","relative_url":"\/me\/messages","name":"QNHNz","depends_on":"xGBNS"}, | |
{"method":"POST","body":"Send API payload for message 3","relative_url":"\/me\/messages","name":"somaR","depends_on":"QNHNz"}] | |
} | |
# response | |
[null,null, | |
{"code":200,"body":"{"recipient_id":"xxxxxxxx","message_id":"D2fZvGBOJZjiwql_e7dgYSfOYKqdASvvcQlCf50HnmHOlcASn5aiBW8zieGnsGDzMT5r20sYja2Pu4FecG8Zmw"}"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment