Questions tagged [fql.multiquery]

Multi-query: request a series of FQL (Facebook Query Language) queries in one call and returns the data at one time

This method takes a JSON-encoded dictionary called ''queries'' where the individual queries use the exact same syntax as a simple query. However, this method allows for more complex queries to be made. You can fetch data from one query and use it in another query within the same call.

132 questions
14
votes
3 answers

Increasing the performance and usability of Facebook's FQL

I try to get some insights from the pages I am administrator on Facebook. What my code does, it gets the IDs of the pages I want to work with through mySQL. I did not include that part though. After this, I get the page_id, name and fan_count of…
EnexoOnoma
  • 8,454
  • 18
  • 94
  • 179
9
votes
7 answers

Facebook mutual friends and FQL 4999/5000 record limit

I'm trying to select all mutual friends' connections with PHP/FQL. Using my UID (540 friends), which means >12,000 connections, of which >6500 are unique. So this code should return all the connections but Facebook apparently has a 4999/5000 row…
ow3n
  • 5,974
  • 4
  • 53
  • 51
8
votes
2 answers

How do I use the result from FB FQL multiquery?

I'm confused by Facebook's fql.multiquery method. I'm trying to retrieve all the comments on a post, and then the user information for each one as well. I can get the comments without any problem, but I'm having trouble getting the users. Currently…
Sharon
  • 3,471
  • 13
  • 60
  • 93
8
votes
1 answer

Facebook FQL multiquery in iOS SDK

I am looking for some documentation or sample code on how to send multiquery fql requests to Facebook via iOS SDK. I found some older samples but they doesnt work for me. I have populated an NSDictionary with the queries and I try to send the…
8
votes
3 answers

Facebook New PHP SDK For Graph API - Multi Query

I'm at my wits end in what the queries parameter value should look like. So to sumbit a multiquery accross the graph API library, the following would be the code method to perform it, as far as I can tell. $param = array( 'method' =>…
Rob K.
  • 519
  • 6
  • 16
7
votes
2 answers

How to get messages for specific user by FQL or GRAPH API?

I would like to retrieve all messages from https://graph.facebook.com/me/inbox or via FQL for specific user like: "All messages from and to user with ID: 123456789" I will be possible with FQL multi-query ?
7
votes
1 answer

What are the limits of Facebook FQL queries and Multiqueries (Max number of multiqueries and rate limitations)

Is there some documentation about limits of Facebook queries and multi-queries?I've found out by trying and testing that multi-queries start giving errors at around 250 multi-queries per request, but that is something which is not standard, because…
Nicola Peluchetti
  • 76,206
  • 31
  • 145
  • 192
6
votes
3 answers

Facebook FQL - How do I fetch the posts I made to a friend's wall

I have a facebook desktop app with some test users all having granted the stream_read & offline access permissions. I can easily retrieve posts to each users' stream & profile. What I cannot do easily is retrieve posts that a user has made to one of…
simianarmy
  • 1,485
  • 10
  • 13
5
votes
2 answers

Graph API: An unknown error occurred while fetching fql multiquries

I have a problem using the PHP SDK: $fql="{'query1':'SELECT uid2 FROM friend WHERE uid1=me()', 'query2':'SELECT author_uid FROM checkin WHERE author_uid IN(SELECT uid2 FROM #query1) AND page_id = $page_id'}"; $friends=…
4
votes
1 answer

Retrieving posts and comments from a Facebook page

I want to retrieve all of the posts from a given facebook page along with the associated comments. I wrote this code (app details obfuscated, replace with your own in order to run it).
Giacomo
  • 11,087
  • 5
  • 25
  • 25
4
votes
1 answer

Facebook FQL multiquery on stream and user details

I am aiming to create a FQL query to retrieve all of my friends stream posts with their full name and email returned altogether. So I created a FQL multiquery (as below) but i keep getting empty result back (tried to put it in the Graph API…
3
votes
1 answer

FQL query results in 601 Parse error: unexpected '_'

Let me preface this by saying that my code seems to work for all users I've tested with but one. I'm using the following multiquery to get a user's albums and cover image data: { "album_query": " SELECT aid, object_id, name, modified, size, link,…
ari
  • 295
  • 1
  • 4
  • 15
3
votes
4 answers

Friend with the highest number of mutual friends

I want to find my friend whom I share with them the highest number of mutual friends. I tried to do it with FQL and graph API the following way: Get the friends list of the current logged in user. FQL: SELECT uid1 FROM friend WHERE…
Sharon Haim Pour
  • 6,595
  • 12
  • 42
  • 64
3
votes
1 answer

Facebook API Rate Limit - Server-side vs Client-side

To my understanding the rate limit for facebook API is about 600 calls per 600 sec, per token & IP. Now I have a website/facebook-app that allows users to browse public nightclub pages and events which does not require the user to be logged in to…
3
votes
2 answers

FQL: Selecting friend's photos

This FQL attempting to fetch photos for my friends [1] {"query1":"SELECT owner, object_id, src_big FROM photo WHERE owner IN (SELECT uid2 FROM friend WHERE uid1=me())"} provides this error response after thinking for a few…
jy jumper
  • 31
  • 3
1
2 3
8 9