Android SDK Version


public interface FacebookCallback<RESULT>
A callback class for the Facebook SDK.
Method Summary
Modifier and TypeMethodDescription
abstract voidonSuccess(RESULT result) Called when the dialog completes without error.
abstract voidonCancel() Called when the dialog is canceled.
abstract voidonError(FacebookException error) Called when the dialog finishes with an error.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

onSuccess

 abstract void onSuccess(RESULT result)
Called when the dialog completes without error.
Note: This will be called instead of onCancel if any of the following conditionsare true.
Parameters:
result - Result from the dialog

onCancel

 abstract void onCancel()
Called when the dialog is canceled.
Note: onSuccess will be called instead if any of the following conditionsare true.

onError

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