When working on an application that deals with Facebook API, if the application needs the ability to access significant amounts of data in a single go - or you needs to make changes to several objects at once, it is often more efficient batch your queries rather than make multiple individual HTTP requests.
Questions tagged [facebook-batch-request]
54 questions
7
votes
1 answer
Facebook graph API 'ids' variable limit
I'm making API calls to retrieve simple data from Facebook pages:
/[page_id]?fields=likes,talking_about_count,checkins
I know I can get multiple results by providing multiple ids using the 'ids'…

NiloVelez
- 3,611
- 1
- 22
- 30
4
votes
1 answer
facebook batch request for multiple users
I have a user database from facebook. I want to get their data (interests and friends birthdays) using batch request. Now I can make 1 batch request for 1 user. But considering the no. of users in my app is huge definately it will reach a limit.
I…

Anuj Batra
- 81
- 2
- 6
4
votes
1 answer
Linking responses to requests with Facebook Batch Requests
I'm using Facebook's Batch Requests to post to multiple feeds and I need to link the correct response to every request in the batch. Since I found no definitive info on the documentation, do the members of the returned array appear in the same order…

Matteo Riva
- 24,728
- 12
- 72
- 104
3
votes
3 answers
How do I encode the & symbol for batch requests?
I have a Facebook batch request that looks like this:
https://graph.facebook.com/?access_token=ACCESS_TOKEN&batch=[{"method": "GET", "relative_url": "search?q=EMAIL@ADDRESS.COM&type=user"}]
Sending this across the wire returns:
{"error"=>0,…

VNO
- 3,645
- 1
- 16
- 25
3
votes
0 answers
FB Business verification error - Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again
I am working on a new business and created my page on FB. I tried to verify my business as per instructions at this link on fb.
The instruction article has a hyperlinked for security centre whcih opens a page with pre-populated values (which are…

MSP
- 45
- 6
2
votes
3 answers
How to do batch request of fql queries in graph api?
I am having 4-5 fql queries in single function. Each of them taking 2-4 seconds to execute. Total 14-15 seconds are required to execute that whole function. User required to wait for long time. So I want to reduce that processing time. ( There is…

Somnath Muluk
- 55,015
- 38
- 216
- 226
2
votes
2 answers
Waiting for result of graph api / batch api
How can I not wait for response from API call?
I have a big batch of API calls (one depends on other) but application does not need the results. Just say "Facebook do this" and do not wait for response.
How can I not wait for a response?

Jindra
- 780
- 13
- 39
2
votes
2 answers
Limit fields using JavaScript SDK Batch Request
Is it possible to limit the fields that are returned from Facebook's Batch request API using the JavaScript SDK? For example:
FB.api('/', 'POST', {
batch: [
{ method: 'GET', relative_url: 'me'},
...
]
…

Johnny Oshika
- 54,741
- 40
- 181
- 275
2
votes
1 answer
How to make Facebook API batch request into async
This works fine as a batch request posting to https://graph.facebook.com, with the following as the 'batch=' parameter, but how do I make it an async request?
[{
"method":…

runrig
- 6,486
- 2
- 27
- 44
2
votes
2 answers
Facebook's Batch Request not picking up a JSON parameter
My goal is to create a number of ads using Facebook's Batch API : https://developers.facebook.com/docs/marketing-api/asyncrequests/v2.9
I am sending a POST request at this URL:
https://graph.facebook.com/v2.9/act_158365238/ads
I am sending 2…

Zahid Sattar
- 1,467
- 2
- 13
- 21
2
votes
1 answer
facebook batch request returns null objects
I'm trying to create a method for returning page name and page photo from a list of page id's, the requests seem to be returning null, a solution to the problem will be as much appreciated as a suggestion for a better method for what im trying to…

user3139917
- 33
- 4
2
votes
0 answers
Get friends who visited a certain country from Facebook graph
I'm trying to use the Facebook graph api to get a list of friends who have visited a certain country, like the result from the facebook graph search friends that have been to ...
The solution I have found is to get all of their locations using…

guyzyl
- 387
- 5
- 18
2
votes
1 answer
Facebook Graphi API with FQL Batch Requests
I am trying to use batch request against graph API in java. Actually it's an HTTPClient that is making a graph API request.
I tried to construct an array of batch request like this:
String query2 = "SELECT --- from tableX";
String query =…

Sam
- 21
- 2
1
vote
1 answer
Uploading multiple photos returns OAuthException for some of them
I'm uploading multiple photos to the user's application album using a Graph API Batch Request.
For some mysterious reason, I get a 400 Error code for some photos, but not for others, in the same batch.
See the result here :…

ChrisDelsart
- 463
- 2
- 11
1
vote
1 answer
Graph API Batch Request with dependencies and increment?
I want to do a batch request and use dependencies, but i need to increment the ids I receive. As you can see below, I have tried a few different ideas but they don't work. Anyone ever get this to work?
var q = {batch:[{"name":"get-friends",…

kentendo
- 31
- 5