i am working on a android app which is integrated with facebook . i am using fql query to fetch info from facebook. my fql method is
void run
String jsonString = yourstring;
JSONObject jsonResult = new JSONObject(jsonString);
JSONArray data = jsonResult.getJSONArray("data");
if(data != null) {
String[] names = new String[data.length()];
String[] birthdays = new String[data.length()];
for(int i = 0 ; i < data.length() ; i++) {
birthdays[i] = data.getString("birthday");
names[i] = data.getString("name");
}
}
check http://www.androidhive.info/2012/01/android-json-parsing-tutorial/