Android SDK Version

public interface FacebookCallback<RESULT>
A callback class for the Facebook SDK.
Method Summary
Modifier and TypeMethod and Description
voidonCancel()
Called when the dialog is canceled.
voidonError(FacebookException error)
Called when the dialog finishes with an error.
voidonSuccess(RESULT result)
Called when the dialog completes without error.
Method Detail

onSuccess

void onSuccess(RESULT result)
Called when the dialog completes without error.
Note: This will be called instead of onCancel() if any of the following conditions are true.
  • MessageDialog is used.
  • The logged in Facebook user has not authorized the app that has initiated the dialog.
Parameters:
result - Result from the dialog

onCancel

void onCancel()
Called when the dialog is canceled.
Note: onSuccess(Object) will be called instead if any of the following conditions are true.
  • MessageDialog is used.
  • The logged in Facebook user has not authorized the app that has initiated the dialog.

onError

void onError(FacebookException error)
Called when the dialog finishes with an error.
Parameters:
error - The error that occurred