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

Get notifications

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

Initialize callback listener:

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

Get notifications:

mSimpleFacebook.getNotifications(onNotificationsListener);
Clone this wiki locally