Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Get comments

Roman Kushnarenko edited this page Oct 29, 2014 · 2 revisions

Get all comments

Initialize callback listener:

OnCommentsListener onCommentsListener = new OnCommentsListener() {			
	@Override
	public void onComplete(List<Comment> comments) {
		Log.i(TAG, "Number of comments = " + comments.size());
	}
	
	/* 
	 * You can override other methods here: 
	 * onThinking(), onFail(String reason), onException(Throwable throwable)
	 */		
};

Get comments of next entities by passing entity id:

  • Album
  • Checkin
  • Comment
  • Photo
  • Post
  • Video
String entityId = ...;
mSimpleFacebook.getComments(entityId, onCommentsListener);

Get one comment

mSimpleFacebook.getComment(commentId, onCommentsListener);
Clone this wiki locally