Running multiple FQL queries #39

raffael opened this Issue Sep 1, 2012 · 1 comment


None yet

2 participants

raffael commented Sep 1, 2012

With the new changes in the Graph API, FQL queries can now be made using the instead of The sendFQLRequest should be rewritten to implement that change.

Additionally, multiple queries can now be executed at once using braces notation:{"user+info":"SELECT … ","photo+info":"SELECT …"}

Currently, sending requests containing {, } or _ (Space) with PhFacebook result in empty result strings. To fix that, the following code can be used:

NSString *fqlQuery = @"fql?q={"...":"…", ...}";
NSString *properlyEncodedString = [fqlQuery stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];

The properlyEncodedString now results in correct Graph results.


If you have a code fix that can allow both single and multiple queries at the same time, send a pull request and I'll review it. Thanks!

@philippec philippec closed this Jan 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment