New multicomponent FQL in chart API API example?

Is anyone lucky with running multiquery via javascript API or ajax?

+4
source share
1 answer

I successfully did this, although at first I had a slight problem with documentation having only php example.

Just make sure you attach json queries as the second parameter in the api call, and not as a query string, as in the php example. I.e:

 FB.api('/fql', {q:{"query1":"SELECT uid, rsvp_status FROM event_member WHERE eid=12345678","query2":"SELECT name, url, pic FROM profile WHERE id IN (SELECT uid FROM #query1)"}}, function(response) { // handle response }); 
+19
source

All Articles