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

Get photos

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

Initialize callback listener:

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

Get my photos:

mSimpleFacebook.getPhotos(onPhotosListener);

Get photos of next entities by passing entity id:

  • Profile
  • Album
  • Event
  • Page
String entityId = ...;
mSimpleFacebook.getPhotos(entityId, onPhotosListener);
Clone this wiki locally