I am trying to grab reply to certain comment from facebook using the help from the comment library of restfb and the function getcomments().
After executing my code, it returns me a null rather than a reply to the comment.
Below is my snapshot of my code.
Connection<Comment> allComments = fbClient.fetchConnection(myArr1.get(xy)+"/comments", Comment.class);
for(List<Comment> postcomments : allComments){
for (Comment comment : postcomments){
String commentTemp = comment.getId() +" "+ comment.getFrom().getId() +" "+ comment.getCreatedTime() +" "+ comment.getMessage() +" "+ comment.getLikeCount() +" "+ comment.getComments()+" "+myArr1.get(xy);
}
}
All the function returns me the correct value except for the comment.getcomments()