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

Get likes

Roman Kushnarenko edited this page Oct 16, 2014 · 1 revision

Initialize callback listener:

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

Get likes of next entities by passing entity id:

  • Album
  • Checkin
  • Comment
  • Photo
  • Post
  • Video
String entityId = ...;
mSimpleFacebook.getLikes(entityId, onLikesListener);
Clone this wiki locally