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

Get objects

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

Initialize callback listener:

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

Get hosted story objects:

String objectName = ... ;
mSimpleFacebook.getStoryObjects(objectName, onStoryObjectsListener);
Clone this wiki locally