I am trying to extract a person\'s details who liked a facebook page by passing the page id as parameter. I extracted the JSON content of that page and now from that I want
This snippet is not tested, but I'm pretty sure it works:
JSONArray data = json.getJSONArray("data");
for (int i=0; i < data.length(); i++) {
JSONObject o = data.getJSONObject(i);
sysout(o.getString("id");
sysout(o.getString("name");
}