Questions tagged [facebook-batch-request]

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.

54 questions
1
vote
1 answer

Why does Facebook batch API request sometime return nulls?

I use Facebook's batch request quite a bit in my app. For the most part, it works really well, but one thing that confuses me is why does their API sometimes return nulls? If I get this "nulls" response, I can just try again moments later and it…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
1
vote
1 answer

A way to query both news feed and wall using a single request

I'm trying to find the best way to query both news feed and wall using a single request. First attempt: Query me/home and me/feed in batch request. Problem: querying me/home gives me bad results due to Graph API bugs (showing blocked items and on…
1
vote
1 answer

How to use fql and graph api together in facebook batch request?

How to use fql and graph api together in facebook batch request?I want to get profile information about me using graph api and my friend's last 30 days posts using fql .
Soojoo
  • 2,146
  • 1
  • 30
  • 56
1
vote
1 answer

Simple batch request for Graph API returning Unsupported Post Request error

I'm trying to get public engagement metrics via the Graph API for a list of links. Since there are a lot of them, a batch request is necessary to avoid hitting the rate limits. Using the engagement endpoint for links and the batch API guide…
1
vote
1 answer

Facebook Graph API Ad Report Run - Message: Unsupported get request

I'm making an async batch request with 50 report post request on it. The first batch request returns me the Report Ids 1st Step dynamic report_ids = await fb.PostTaskAsync(new { batch = batch, …
1
vote
1 answer

Limit for facebook batch requests

I try to call user posts via batch request. So my idea was to create an multidimensional array. Every array has 50 request $fb->request('GET','/'.$user.'?fields=id,posts{created_time,message,id}'); First question: Is this one request? I think…
1
vote
0 answers

Trouble in facebook PHP SDK, can't make batch requests

I am trying to build an application that can retrieve these data from a group that I manage: -> member's name -> the admin who added each member I've 3 separate files : index.php: contains the logging using group…
1
vote
2 answers

FaceBook iOS SDK Batch Request & Single Completion Handler

I started to use Facebook SDK for iOS and i'm a little bit confused, I'm seeing this little piece of code that shows how we can perform a batch request however having a completion handler per request is absurd for me. how can you make a completion…
1
vote
0 answers

Android Batch Request Sometimes Returns: FacebookException: Unexpected number of results

We are using the FB Android SDK RequestBatch::executeAndWait() to send a batch request to the retrive some information about photos. The number of requests in this batch is less than 50. However, sometimes we see an exception being thrown:…
1
vote
1 answer

Parser error with RequestBatch facebook

I wanna execute multiple requests with RequestBatch class in facebook sdk. But I'm encountering a weird issues.That's requestBatch always return "error data" for 2nd response. The error response is: {Response: responseCode: 200, graphObject: null,…
Leo Nguyen
  • 614
  • 1
  • 9
  • 23
1
vote
1 answer

Post IDs are not quoted in dependent mix batch-request of FQL and Graph API

I'm using batch requst: query1: Get page posts with Graph API (and other fields and comments) query2: Using the {result=query1:$.data.*.id} from query1 to get all posts IDs and to get in FQL the user_likes fields. The problem is…
1
vote
0 answers

PHP: Can the FB API Batch Request be used in this case?

Ive got multiple Facebook Fan pages that I need to query the FB.API for (to get info about each page). I noticed that when the number of fanpages that I need to query the API for becomes large there are significant performance issues. while($row =…
Allen S
  • 3,471
  • 4
  • 34
  • 46
1
vote
0 answers

Graph API Batch request not working for GET

Following batch request doesn't work: https://graph.facebook.com/?batch%3d[{%22method%22%3a%22get%22%2c%22relative_url%22%3a%22me%22}%2c%22{%22method%22%3a%22get%22%2c%22relative_url%22%3a%22me%2ffriends%3flimit%3d50%22}]%26access_token%3d It has a…
1
vote
2 answers

facebook batch request with jsonpath

With Facebook, i need to know, who (which user) has commented on a post on a facebook-page. I make two requests with facebook-batch-requests in my javascript-file, the first for all the posts and with the second, I want the requests of each post.…
1
vote
1 answer

Using Batch request in PHP SDK to get Facebook Album Covers

I am using the PHP SDK through Batch Request (so that its faster to get the covers of all the albums). Its working fine, but the pictures I am getting are not the album covers but the individual pictures in the various cropped sizes. $albums_resp =…
jbx
  • 21,365
  • 18
  • 90
  • 144