Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to get all comments of facebook wall posts using Graph API in android
    primarykey
    data
    text
    <p>I have created my application integrated with Facebook to get feed from that. I actually get the responses properly, but the issue now is that I'm not able to get all comments using graph API. Suppose one of the posts has 30 comments and I'm getting only the last 2 comments of every post in facebook wall using List view.</p> <p>Please help me to get all comments from the posts. Thanks in advance. This is my Snippet of code using JSON parsing.</p> <pre><code>childList=new ArrayList&lt;HashMap&lt;String,Object&gt;&gt;(); HashMap&lt;String, Object&gt; childlist_hashMap=new HashMap&lt;String, Object&gt;(); JSONObject comments_Show=data.getJSONObject(i).getJSONObject("comments"); if(comments_Show.has("data")) { JSONArray datacomments=comments_Show.getJSONArray("data"); for(int c=0;c&lt;datacomments.length();c++) { childlist_hashMap=new HashMap&lt;String, Object&gt;(); childlist_hashMap.put("UserName", datacomments.getJSONObject(c).getJSONObject("from").getString("name")); URL url= new URL("http://graph.facebook.com/"+datacomments.getJSONObject(c).getJSONObject("from").getString("id")+"/picture?type=normal"); childlist_hashMap.put("Image", BitmapFactory.decodeStream(url.openConnection().getInputStream())); childlist_hashMap.put("CommentsFull",datacomments.getJSONObject(c).getString("message")); childlist_hashMap.put("Comments_id",datacomments.getJSONObject(c).getString("id")); childlist_hashMap.put("Comments_date",datacomments.getJSONObject(c).getString("created_time")); childList.add(childlist_hashMap); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload