Right now I am using Android’s Bundle to create requests for Facebook Query Language
Bundle params = new Bundle();
params.putString("method", "fql.query");
params.putString("query", "SELECT * FROM * WHERE source_id = *");
mAsyncRunner.request(params, new ExampleRequestListener());
From PHP examples I have seen arrays of user IDs sent as a parameter for a query, but how can I add an array to this bundle to make the request from Java for an Android application?
Thanks for help.
I’m pretty sure that the query you send to FQL has little to do with the fact that you are using Bundle, Android and Java – the magic will happen in the FQL query itself.
The canonical example for an FQL query on multiple UIDs seems to go something like this:
or from fql multiquery documentation:
So for your case I would modify the line with the query. I also notice that you have
in that line. are you sure you don’t want to choose a table?
For instance: