Package 

Interface FacebookCallback


  • 
    public interface FacebookCallback<RESULT>
    
                        

    A callback class for the Facebook SDK.

    • Method Summary

      Modifier and Type Method Description
      abstract void onSuccess(RESULT result) Called when the dialog completes without error.
      abstract void onCancel() Called when the dialog is canceled.
      abstract void onError(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.

        • com.facebook.share.widget.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

         abstract void onCancel()

        Called when the dialog is canceled.

        Note: onSuccess will be called instead if any of the following conditionsare true.

        • com.facebook.share.widget.MessageDialog is used.
        • The logged in Facebook user has not authorized the app that has initiated the dialog.
      • onError

         abstract void onError(FacebookException error)

        Called when the dialog finishes with an error.

        Parameters:
        error - The error that occurred