This Choreo allows you to perform multiple graph operations in one request. This is often a more efficient way to execute multiple queries, and allows you to do things like retrieving data for multiple objects at the same time. The documentation for this Facebook method can be found here.
Here's an example of acceptable inputs:
AccessToken: {YOUR FACEBOOK ACCESS TOKEN}
Batch: [{"method":"GET", "relative_url":"me"},{"method":"GET", "relative_url":"me/friends?limit=50"}]
The following is a sample of the JSON information returned by this Choreo:
[
{
"code": 200,
"headers": [
{
"name": "Access-Control-Allow-Origin",
"value": "*"
},
{
"name": "Cache-Control",
"value": "private, no-cache, no-store, must-revalidate"
},
{
"name": "Connection",
"value": "close"
},
{
"name": "Content-Type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "ETag",
"value": "\"897ecb9a9bb207207ee300974b03e69bb4fa1a27\""
},
{
"name": "Expires",
"value": "Sat, 01 Jan 2000 00:00:00 GMT"
},
{
"name": "Last-Modified",
"value": "2012-05-26T02:35:30+0000"
},
{
"name": "Pragma",
"value": "no-cache"
}
],
"body": "{\"id\":\"100002858333381\",\"name\":\"Temboo Tester\",\"first_name\":\"Temboo\",\"last_name\":\"Tester\",\"link\":\"http:\\/\\/www.facebook.com\\/temboo.tester\",\"username\":\"temboo.tester\",\"gender\":\"male\",\"timezone\":-4,\"locale\":\"en_US\",\"verified\":true,\"updated_time\":\"2012-05-26T02:35:30+0000\"}"
},
{
"code": 200,
"headers": [
{
"name": "Access-Control-Allow-Origin",
"value": "*"
},
{
"name": "Cache-Control",
"value": "private, no-cache, no-store, must-revalidate"
},
{
"name": "Connection",
"value": "close"
},
{
"name": "Content-Type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "ETag",
"value": "\"e5ce9589033ad382711d0195bf473b87cbcf5ef2\""
},
{
"name": "Expires",
"value": "Sat, 01 Jan 2000 00:00:00 GMT"
},
{
"name": "Pragma",
"value": "no-cache"
}
],
"body": "{\"data\":[{\"name\":\"Aaron Jennings\",\"id\":\"829558969\"}],\"paging\":{\"next\":\"http:\\/\\/graph.facebook.com\\/100002858333381\\/friends?limit=50&access_token=275550055804564|73bdbbde94e292fb6805d316.4-100002858333381|YyKiJmDaL9EFmXIHe9Qx_2WgYiE&offset=50&__after_id=829558969\"}}"
}
]