Anyone experienced the Graph API returning only a set number of results
every time when JSON is used (limit is not being implemented)
The exact problem is that 57 results are coming up and then one is coming
up only partially, before this error is thrown.
09-05 10:09:56.911: W/System.err(3660): at
org.json.JSON.typeMismatch(JSON.java:111)
09-05 10:09:56.911: W/System.err(3660): at
org.json.JSONArray.<init>(JSONArray.java:91)
09-05 10:09:56.911: W/System.err(3660): at
org.json.JSONArray.<init>(JSONArray.java:103)
My actual code is below:
String response = facebook.request("me/friends",bundle, "GET");
JSONArray jArray = new JSONArray(response);
for (int i = 0;i<(jArray.length());i++) {
JSONObject json_obj=jArray.getJSONObject(i);
String username=json_obj.getString("username");
String fbname=json_obj.getString("name");
String installed=json_obj.getString("installed");
Log.i("name",fbname);
Log.i("detail", username);
Log.i("phoneBOOL","false");
}
Any ideas?
Anyone got experience at this?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en