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
0 answers

Graph API /threads messages usage limitations

With regards of using the /threads object from Graph API I want to know if a public figure account has some limitation regarding the amount of received messages / day and to know if a Facebook application that reads them using /threads has…
1
vote
1 answer

facebook batch/fql friendlists a friend is member of

I'm creating a javascript facebook app to have an overview of my friendlists. Actually I can retrieve my (logged in user = me) friendlists, when I click a friendlist I see all my friends in that list. When I want now is, when I click a list, I want…
1
vote
1 answer

Batch API, inviting friends

I'm trying to invite all fans of a page to a facebook event using the batch API. It's the first time I'm using this API, and at this time I have nothing to test this part of code... can someone tell me how to test without using a real page, with…
1
vote
1 answer

Using the facebook batch api to post the same photo to multiple facebook pages

So here is what I'm trying to do. I'm trying to use the facebook batch api to post a single photo to multiple facebook pages at the same time. I first put everything into an array (fb_batch) then encode it using JSON. This method works just fine for…
bloveless
  • 4,272
  • 1
  • 16
  • 13
0
votes
1 answer

batch request graph api iPhone xcode?

I am going to fetch four or multiple records of from facebook through graph api with batch request like this NSString *jsonRequest1 = @"{ \"method\": \"GET\", \"relative_url\": \"133028623426021\" }"; NSString *jsonRequest2 = @"{ \"method\":…
Umair_uas
  • 673
  • 1
  • 9
  • 27
0
votes
1 answer

file_get_contents not working for fetching data from facebook using batch requests

file_get_contents not working for fetching fata from facebook using batch requests.Am using the code below: $url='https://graph.facebook.com/?batch=[{ "method": "POST",…
Soojoo
  • 2,146
  • 1
  • 30
  • 56
0
votes
2 answers

Batch request query

I am working with the batch request of the Facebook. I have tried the api call as shown below. Is there anything wrong here? [{"method":"POST","relative_url":…
insomiac
  • 5,648
  • 8
  • 45
  • 73
0
votes
2 answers

Quoting/escaping jsonpath elements for in clause of dependent fql queries

Using the facebook php sdk, I am trying to get a list of comments for every post made to a person's wall by someone else. I'm using FQL in a Batch API request as follows: $getStream = urlencode("method/fql.query?query=SELECT post_id, actor_id,…
0
votes
0 answers

Unsupported post request while making facebook graph API request to post data in Catalog

I am beginner in Facebook Graph API and While making the post request to "/{catalog_id}/batch" I get the following error: "Unsupported post request. Object with ID '' does not exist, cannot be loaded due to missing permissions, or does…
0
votes
1 answer

Facebook Graph API Batch Request Filtering?

The problem: My batch request returns passed group events and the current batch request will scale badly with users creating future events. I have the following batch request: { "batch": [ { "method": "GET", "relative_url": "me" …
Darkwonder
  • 1,149
  • 1
  • 13
  • 26
0
votes
1 answer

Facebook Batch Request Returns Empty Bodies

I am working on Facebook Marketing API and in a single batch request creating 1 Ad Campaign with 4 Ad Sets, in each Ad Set by 1 Ad creative and based on each Ad creative 5 Ads in each Ad Set. I have no problem with it at all and everything was…
ITinARRAY
  • 27
  • 2
0
votes
0 answers

Post photos to an album using a batch request and curl

I'm trying to post a number of photos to an already created album using cURL with the following command: curl -F 'access_token=<>' \ -F 'batch=[ \ {"method":"POST","relative_url":"/album_id/photos","url":""}, \ …
Daniel
  • 1,075
  • 2
  • 14
  • 26
0
votes
2 answers

Pass in date params to Facebook batch request

I want to pass in date parameters into the PHP SDK batch request method. Is it possible to pass in date params such as: $params = array( 'time_range' => array( 'since' => (new \DateTime("-1 week"))->format('Y-m-d'), 'until' => (new…
0
votes
1 answer

Facebook: field expansion in batch requests ->

How can I define the requested fields for the 2nd part of my batch request? Example: [ { "method": "GET", "name": "get-friends", "relative_url": "me/friends?limit=5", "omit_response_on_success": false }, { "method": "GET", …
Ralph Bergmann
  • 3,015
  • 4
  • 30
  • 61
0
votes
1 answer

Facebook Batch returns: Some of the aliases you requested do not exist

I'm building this batch in order to get all the share counts for all the pictures in an album (and like and comments on each photo): My Batch: [ { "method":"GET", "name":"get-photos", …
Asaf Nevo
  • 11,338
  • 23
  • 79
  • 154