-
public class NativeProtocol
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract class
NativeProtocol.NativeAppInfo
public final class
NativeProtocol.ProtocolVersionQueryResult
-
Field Summary
-
Method Summary
-
-
Method Detail
-
validateActivityIntent
final static Intent validateActivityIntent(Context context, Intent intent, NativeProtocol.NativeAppInfo appInfo)
-
validateServiceIntent
final static Intent validateServiceIntent(Context context, Intent intent, NativeProtocol.NativeAppInfo appInfo)
-
createInstagramIntent
final static Intent createInstagramIntent(Context context, String applicationId, Collection<String> permissions, String e2e, Boolean isRerequest, Boolean isForPublish, DefaultAudience defaultAudience, String clientState, String authType, String messengerPageId, Boolean resetMessengerState, Boolean isFamilyLogin, Boolean shouldSkipAccountDedupe)
-
createProxyAuthIntents
final static List<Intent> createProxyAuthIntents(Context context, String applicationId, Collection<String> permissions, String e2e, Boolean isRerequest, Boolean isForPublish, DefaultAudience defaultAudience, String clientState, String authType, Boolean ignoreAppSwitchToLoggedOut, String messengerPageId, Boolean resetMessengerState, Boolean isFamilyLogin, Boolean shouldSkipAccountDedupe, String nonce, String codeChallenge, String codeChallengeMethod)
-
getLatestKnownVersion
final static Integer getLatestKnownVersion()
-
isVersionCompatibleWithBucketedIntent
final static Boolean isVersionCompatibleWithBucketedIntent(Integer version)
-
createPlatformActivityIntent
final static Intent createPlatformActivityIntent(Context context, String callId, String action, NativeProtocol.ProtocolVersionQueryResult versionResult, Bundle extras)
Will create an Intent that can be used to invoke an action in a Facebook app via the Native Protocol
-
setupProtocolRequestIntent
final static Unit setupProtocolRequestIntent(Intent intent, String callId, String action, Integer version, Bundle params)
Will setup the passed in Intent in the shape of a Native Protocol request Intent.
-
createProtocolResultIntent
final static Intent createProtocolResultIntent(Intent requestIntent, Bundle results, FacebookException error)
Use this method to set a result on an Activity, where the result needs to be in the shape of the native protocol used for native dialogs.
-
createPlatformServiceIntent
final static Intent createPlatformServiceIntent(Context context)
-
getProtocolVersionFromIntent
final static Integer getProtocolVersionFromIntent(Intent intent)
-
getCallIdFromIntent
final static UUID getCallIdFromIntent(Intent intent)
-
getBridgeArgumentsFromIntent
final static Bundle getBridgeArgumentsFromIntent(Intent intent)
-
getMethodArgumentsFromIntent
final static Bundle getMethodArgumentsFromIntent(Intent intent)
-
getSuccessResultsFromIntent
final static Bundle getSuccessResultsFromIntent(Intent resultIntent)
-
isErrorResult
final static Boolean isErrorResult(Intent resultIntent)
-
getErrorDataFromResultIntent
final static Bundle getErrorDataFromResultIntent(Intent resultIntent)
-
getExceptionFromErrorData
final static FacebookException getExceptionFromErrorData(Bundle errorData)
-
createBundleForException
final static Bundle createBundleForException(FacebookException e)
-
getLatestAvailableProtocolVersionForService
final static Integer getLatestAvailableProtocolVersionForService(Integer minimumVersion)
-
getLatestAvailableProtocolVersionForAction
final static NativeProtocol.ProtocolVersionQueryResult getLatestAvailableProtocolVersionForAction(String action, IntArray versionSpec)
-
updateAllAvailableProtocolVersionsAsync
final static Unit updateAllAvailableProtocolVersionsAsync()
-
computeLatestAvailableVersionFromVersionSpec
final static Integer computeLatestAvailableVersionFromVersionSpec(TreeSet<Integer> allAvailableFacebookAppVersions, Integer latestSdkVersion, IntArray versionSpec)
-
getNO_PROTOCOL_AVAILABLE
final Integer getNO_PROTOCOL_AVAILABLE()
-
getFACEBOOK_PROXY_AUTH_PERMISSIONS_KEY
final String getFACEBOOK_PROXY_AUTH_PERMISSIONS_KEY()
-
getFACEBOOK_PROXY_AUTH_APP_ID_KEY
final String getFACEBOOK_PROXY_AUTH_APP_ID_KEY()
-
getFACEBOOK_PROXY_AUTH_E2E_KEY
final String getFACEBOOK_PROXY_AUTH_E2E_KEY()
-
getFACEBOOK_SDK_VERSION_KEY
final String getFACEBOOK_SDK_VERSION_KEY()
-
getINTENT_ACTION_PLATFORM_ACTIVITY
final String getINTENT_ACTION_PLATFORM_ACTIVITY()
-
getINTENT_ACTION_PLATFORM_SERVICE
final String getINTENT_ACTION_PLATFORM_SERVICE()
-
getPROTOCOL_VERSION_20121101
final Integer getPROTOCOL_VERSION_20121101()
-
getPROTOCOL_VERSION_20130502
final Integer getPROTOCOL_VERSION_20130502()
-
getPROTOCOL_VERSION_20130618
final Integer getPROTOCOL_VERSION_20130618()
-
getPROTOCOL_VERSION_20131024
final Integer getPROTOCOL_VERSION_20131024()
-
getPROTOCOL_VERSION_20131107
final Integer getPROTOCOL_VERSION_20131107()
-
getPROTOCOL_VERSION_20140204
final Integer getPROTOCOL_VERSION_20140204()
-
getPROTOCOL_VERSION_20140313
final Integer getPROTOCOL_VERSION_20140313()
-
getPROTOCOL_VERSION_20140324
final Integer getPROTOCOL_VERSION_20140324()
-
getPROTOCOL_VERSION_20140701
final Integer getPROTOCOL_VERSION_20140701()
-
getPROTOCOL_VERSION_20141001
final Integer getPROTOCOL_VERSION_20141001()
-
getPROTOCOL_VERSION_20141028
final Integer getPROTOCOL_VERSION_20141028()
-
getPROTOCOL_VERSION_20141107
final Integer getPROTOCOL_VERSION_20141107()
-
getPROTOCOL_VERSION_20141218
final Integer getPROTOCOL_VERSION_20141218()
-
getPROTOCOL_VERSION_20150401
final Integer getPROTOCOL_VERSION_20150401()
-
getPROTOCOL_VERSION_20150702
final Integer getPROTOCOL_VERSION_20150702()
-
getPROTOCOL_VERSION_20160327
final Integer getPROTOCOL_VERSION_20160327()
-
getPROTOCOL_VERSION_20161017
final Integer getPROTOCOL_VERSION_20161017()
-
getPROTOCOL_VERSION_20170213
final Integer getPROTOCOL_VERSION_20170213()
-
getPROTOCOL_VERSION_20170411
final Integer getPROTOCOL_VERSION_20170411()
-
getPROTOCOL_VERSION_20170417
final Integer getPROTOCOL_VERSION_20170417()
-
getPROTOCOL_VERSION_20171115
final Integer getPROTOCOL_VERSION_20171115()
-
getPROTOCOL_VERSION_20210906
final Integer getPROTOCOL_VERSION_20210906()
-
getEXTRA_PROTOCOL_VERSION
final String getEXTRA_PROTOCOL_VERSION()
-
getEXTRA_PROTOCOL_ACTION
final String getEXTRA_PROTOCOL_ACTION()
-
getEXTRA_PROTOCOL_CALL_ID
final String getEXTRA_PROTOCOL_CALL_ID()
-
getEXTRA_GET_INSTALL_DATA_PACKAGE
final String getEXTRA_GET_INSTALL_DATA_PACKAGE()
-
getEXTRA_PROTOCOL_BRIDGE_ARGS
final String getEXTRA_PROTOCOL_BRIDGE_ARGS()
-
getEXTRA_PROTOCOL_METHOD_ARGS
final String getEXTRA_PROTOCOL_METHOD_ARGS()
-
getEXTRA_PROTOCOL_METHOD_RESULTS
final String getEXTRA_PROTOCOL_METHOD_RESULTS()
-
getBRIDGE_ARG_APP_NAME_STRING
final String getBRIDGE_ARG_APP_NAME_STRING()
-
getBRIDGE_ARG_ACTION_ID_STRING
final String getBRIDGE_ARG_ACTION_ID_STRING()
-
getBRIDGE_ARG_ERROR_BUNDLE
final String getBRIDGE_ARG_ERROR_BUNDLE()
-
getEXTRA_DIALOG_COMPLETE_KEY
final String getEXTRA_DIALOG_COMPLETE_KEY()
-
getEXTRA_DIALOG_COMPLETION_GESTURE_KEY
final String getEXTRA_DIALOG_COMPLETION_GESTURE_KEY()
-
getRESULT_ARGS_DIALOG_COMPLETE_KEY
final String getRESULT_ARGS_DIALOG_COMPLETE_KEY()
-
getRESULT_ARGS_DIALOG_COMPLETION_GESTURE_KEY
final String getRESULT_ARGS_DIALOG_COMPLETION_GESTURE_KEY()
-
getMESSAGE_GET_ACCESS_TOKEN_REQUEST
final Integer getMESSAGE_GET_ACCESS_TOKEN_REQUEST()
-
getMESSAGE_GET_ACCESS_TOKEN_REPLY
final Integer getMESSAGE_GET_ACCESS_TOKEN_REPLY()
-
getMESSAGE_GET_PROTOCOL_VERSIONS_REQUEST
final Integer getMESSAGE_GET_PROTOCOL_VERSIONS_REQUEST()
-
getMESSAGE_GET_PROTOCOL_VERSIONS_REPLY
final Integer getMESSAGE_GET_PROTOCOL_VERSIONS_REPLY()
-
getMESSAGE_GET_INSTALL_DATA_REQUEST
final Integer getMESSAGE_GET_INSTALL_DATA_REQUEST()
-
getMESSAGE_GET_INSTALL_DATA_REPLY
final Integer getMESSAGE_GET_INSTALL_DATA_REPLY()
-
getMESSAGE_GET_LIKE_STATUS_REQUEST
final Integer getMESSAGE_GET_LIKE_STATUS_REQUEST()
-
getMESSAGE_GET_LIKE_STATUS_REPLY
final Integer getMESSAGE_GET_LIKE_STATUS_REPLY()
-
getMESSAGE_GET_AK_SEAMLESS_TOKEN_REQUEST
final Integer getMESSAGE_GET_AK_SEAMLESS_TOKEN_REQUEST()
-
getMESSAGE_GET_AK_SEAMLESS_TOKEN_REPLY
final Integer getMESSAGE_GET_AK_SEAMLESS_TOKEN_REPLY()
-
getMESSAGE_GET_LOGIN_STATUS_REQUEST
final Integer getMESSAGE_GET_LOGIN_STATUS_REQUEST()
-
getMESSAGE_GET_LOGIN_STATUS_REPLY
final Integer getMESSAGE_GET_LOGIN_STATUS_REPLY()
-
getEXTRA_PROTOCOL_VERSIONS
final String getEXTRA_PROTOCOL_VERSIONS()
-
getACTION_FEED_DIALOG
final String getACTION_FEED_DIALOG()
-
getACTION_MESSAGE_DIALOG
final String getACTION_MESSAGE_DIALOG()
-
getACTION_OGACTIONPUBLISH_DIALOG
final String getACTION_OGACTIONPUBLISH_DIALOG()
-
getACTION_OGMESSAGEPUBLISH_DIALOG
final String getACTION_OGMESSAGEPUBLISH_DIALOG()
-
getACTION_LIKE_DIALOG
final String getACTION_LIKE_DIALOG()
-
getACTION_APPINVITE_DIALOG
final String getACTION_APPINVITE_DIALOG()
-
getACTION_CAMERA_EFFECT
final String getACTION_CAMERA_EFFECT()
-
getACTION_SHARE_STORY
final String getACTION_SHARE_STORY()
-
getEXTRA_PERMISSIONS
final String getEXTRA_PERMISSIONS()
-
getEXTRA_APPLICATION_ID
final String getEXTRA_APPLICATION_ID()
-
getEXTRA_APPLICATION_NAME
final String getEXTRA_APPLICATION_NAME()
-
getEXTRA_USER_ID
final String getEXTRA_USER_ID()
-
getEXTRA_LOGGER_REF
final String getEXTRA_LOGGER_REF()
-
getEXTRA_TOAST_DURATION_MS
final String getEXTRA_TOAST_DURATION_MS()
-
getEXTRA_GRAPH_API_VERSION
final String getEXTRA_GRAPH_API_VERSION()
-
getEXTRA_NONCE
final String getEXTRA_NONCE()
-
getEXTRA_ACCESS_TOKEN
final String getEXTRA_ACCESS_TOKEN()
-
getEXTRA_EXPIRES_SECONDS_SINCE_EPOCH
final String getEXTRA_EXPIRES_SECONDS_SINCE_EPOCH()
-
getEXTRA_DATA_ACCESS_EXPIRATION_TIME
final String getEXTRA_DATA_ACCESS_EXPIRATION_TIME()
-
getEXTRA_AUTHENTICATION_TOKEN
final String getEXTRA_AUTHENTICATION_TOKEN()
-
getRESULT_ARGS_ACCESS_TOKEN
final String getRESULT_ARGS_ACCESS_TOKEN()
-
getRESULT_ARGS_GRAPH_DOMAIN
final String getRESULT_ARGS_GRAPH_DOMAIN()
-
getRESULT_ARGS_SIGNED_REQUEST
final String getRESULT_ARGS_SIGNED_REQUEST()
-
getRESULT_ARGS_EXPIRES_SECONDS_SINCE_EPOCH
final String getRESULT_ARGS_EXPIRES_SECONDS_SINCE_EPOCH()
-
getRESULT_ARGS_PERMISSIONS
final String getRESULT_ARGS_PERMISSIONS()
-
getOPEN_GRAPH_CREATE_OBJECT_KEY
final String getOPEN_GRAPH_CREATE_OBJECT_KEY()
-
getIMAGE_USER_GENERATED_KEY
final String getIMAGE_USER_GENERATED_KEY()
-
getIMAGE_URL_KEY
final String getIMAGE_URL_KEY()
-
getSTATUS_ERROR_TYPE
final String getSTATUS_ERROR_TYPE()
-
getSTATUS_ERROR_DESCRIPTION
final String getSTATUS_ERROR_DESCRIPTION()
-
getSTATUS_ERROR_CODE
final String getSTATUS_ERROR_CODE()
-
getSTATUS_ERROR_SUBCODE
final String getSTATUS_ERROR_SUBCODE()
-
getSTATUS_ERROR_JSON
final String getSTATUS_ERROR_JSON()
-
getBRIDGE_ARG_ERROR_TYPE
final String getBRIDGE_ARG_ERROR_TYPE()
-
getBRIDGE_ARG_ERROR_DESCRIPTION
final String getBRIDGE_ARG_ERROR_DESCRIPTION()
-
getBRIDGE_ARG_ERROR_CODE
final String getBRIDGE_ARG_ERROR_CODE()
-
getBRIDGE_ARG_ERROR_SUBCODE
final String getBRIDGE_ARG_ERROR_SUBCODE()
-
getBRIDGE_ARG_ERROR_JSON
final String getBRIDGE_ARG_ERROR_JSON()
-
getERROR_UNKNOWN_ERROR
final String getERROR_UNKNOWN_ERROR()
-
getERROR_PROTOCOL_ERROR
final String getERROR_PROTOCOL_ERROR()
-
getERROR_USER_CANCELED
final String getERROR_USER_CANCELED()
-
getERROR_APPLICATION_ERROR
final String getERROR_APPLICATION_ERROR()
-
getERROR_NETWORK_ERROR
final String getERROR_NETWORK_ERROR()
-
getERROR_PERMISSION_DENIED
final String getERROR_PERMISSION_DENIED()
-
getERROR_SERVICE_DISABLED
final String getERROR_SERVICE_DISABLED()
-
getWEB_DIALOG_URL
final String getWEB_DIALOG_URL()
-
getWEB_DIALOG_ACTION
final String getWEB_DIALOG_ACTION()
-
getWEB_DIALOG_PARAMS
final String getWEB_DIALOG_PARAMS()
-
getWEB_DIALOG_IS_FALLBACK
final String getWEB_DIALOG_IS_FALLBACK()
-
getAUDIENCE_ME
final String getAUDIENCE_ME()
-
getAUDIENCE_FRIENDS
final String getAUDIENCE_FRIENDS()
-
getAUDIENCE_EVERYONE
final String getAUDIENCE_EVERYONE()
-
-
-
-