إصدار مجموعة Android SDK
- Mutable
- CollectionMapper
- AppCall
- CustomTab
- CustomTabUtils
- DialogFeature
- DialogPresenter
- FacebookDialogBase
- FacebookDialogFragment
- GamingAction
- FacebookWebFallbackDialog
- FragmentWrapper
- InstagramCustomTab
- PlatformServiceClient
- WebDialog
- AnalyticsEvents
- AttributionIdentifiers
- BoltsMeasurementEventListener
- BundleJSONConverter
- CallbackManagerImpl
- FacebookInitProvider
- FacebookRequestErrorClassification
- FacebookSignatureValidator
- FeatureManager
- FetchedAppGateKeepersManager
- FetchedAppSettings
- FetchedAppSettingsManager
- FileLruCache
- ImageDownloader
- ImageRequest
- ImageResponse
- ImageResponseCache
- InstallReferrerUtil
- InternalSettings
- LockOnGetVariable
- Logger
- NativeAppCallAttachmentStore
- NativeProtocol
- ServerProtocol
- SmartLoginOption
- UrlRedirectCache
- Utility
- Validate
- WorkQueue
- MessageDialog
- SendButton
- ShareButton
- ShareButtonBase
- GameRequestDialog
- ShareDialog
- MessageDialogFeature
- VideoUploader
- GameRequestValidation
- CameraEffectFeature
- CameraEffectJSONUtility
- LegacyNativeDialogParameters
- NativeDialogParameters
- ResultProcessor
- ShareConstants
- ShareContentValidation
- ShareDialogFeature
- ShareFeedContent
- ShareInternalUtility
- ShareStoryFeature
- WebDialogParameters
- ShareApi
- ShareBuilder
- Sharer
- Share
- ShareToMessengerParamsBuilder
- Messenger
- MessengerThreadParams
- MessengerUtils
- ShareToMessengerParams
- FacebookAppLinkResolver
- AppLinkData
- AppLinks
- AggregateException
- AppLink
- AppLinkResolver
- AppLinks
- CancellationToken
- CancellationTokenRegistration
- CancellationTokenSource
- Continuation
- ExecutorException
- Task
- TaskCompletionSource
- UnobservedTaskException
- AccessTokenTracker
- AuthenticationTokenTracker
- CustomTabActivity
- CustomTabMainActivity
- FacebookActivity
- FacebookAuthorizationException
- FacebookButtonBase
- FacebookCallback
- FacebookDialog
- FacebookDialogException
- LoginStatusCallback
- WebDialog
- AccessToken
- AccessTokenManager
- AccessTokenSource
- AuthenticationToken
- AuthenticationTokenCache
- AuthenticationTokenClaims
- AuthenticationTokenHeader
- AuthenticationTokenManager
- CallbackManager
- CurrentAccessTokenExpirationBroadcastReceiver
- FacebookBroadcastReceiver
- FacebookContentProvider
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookSdk
- FacebookSdkNotInitializedException
- FacebookServiceException
- GraphRequest
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphResponse
- HttpMethod
- LoggingBehavior
- Profile
- ProfileCache
- ProfileManager
- ProfileTracker
- ProgressNoopOutputStream
- ProgressOutputStream
- RequestProgress
- Common
- DeviceRequestsHelper
- EndToEndDumper
- CodeChallengeMethod
- CustomTabLoginMethodHandler
- CustomTabPrefetchHelper
- DeviceAuthDialog
- DeviceAuthMethodHandler
- GetTokenLoginMethodHandler
- KatanaProxyLoginMethodHandler
- LoginBehavior
- LoginClient
- LoginConfiguration
- LoginFragment
- LoginManager
- LoginMethodHandler
- LoginResult
- NativeAppLoginMethodHandler
- NonceUtil
- WebLoginMethodHandler
- WebViewLoginMethodHandler
- DefaultAudience
- LoginTargetApp
- DeviceLoginManager
- Login
- AppGroupCreationContent
- CameraEffectArguments
- CameraEffectTextures
- GameRequestContent
- ShareCameraEffectContent
- ShareContent
- ShareHashtag
- ShareLinkContent
- ShareMedia
- ShareMediaContent
- ShareMessengerActionButton
- ShareMessengerURLActionButton
- ShareModel
- ShareModelBuilder
- SharePhoto
- SharePhotoContent
- ShareStoryContent
- ShareVideo
- ShareVideoContent
- AccessTokenAppIdPair
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsManager
- FlushResult
- InternalAppEventsLogger
- UserDataStore
- MetadataIndexer
- MetadataRule
- SettingsAPIFields
- AppEventsCAPIManager
- CustomEventField
- AppEventType
- AppEventUserAndAppDataField
- ConversionsAPISection
- ConversionsAPICustomEventField
- ConversionsAPIUserAndAppDataField
- ConversionsAPIEventName
- OtherEventConstants
- AppEventsConversionsAPITransformer
- AppEventsConversionsAPITransformerWebRequests
- CodelessLoggingEventListener
- CodelessManager
- RCTCodelessLoggingEventListener
- ViewIndexer
- Constants
- EventBinding
- ParameterComponent
- PathComponent
- SensitiveUserDataUtils
- UnityReflection
- ViewHierarchy
- EventDeactivationManager
- InAppPurchaseActivityLifecycleTracker
- InAppPurchaseAutoLogger
- InAppPurchaseBillingClientWrapper
- InAppPurchaseEventManager
- InAppPurchaseLoggerManager
- InAppPurchaseManager
- InAppPurchaseSkuDetailsWrapper
- InAppPurchaseUtils
- IntegrityManager
- ActivityLifecycleTracker
- AppEventUtility
- AppEventsLoggerUtility
- AutomaticAnalyticsLogger
- Constants
- FileDownloadTask
- ViewHierarchyConstants
- MTensor
- Model
- ModelManager
- Utils
- OnDeviceProcessingManager
- RemoteServiceWrapper
- RestrictiveDataManager
- SuggestedEventsManager
- ViewOnClickListener
- Core
- GateKeeper
- GateKeeperRuntimeCache
- ExceptionAnalyzer
- InstrumentData
- InstrumentManager
- InstrumentUtility
- ANRDetector
- ANRHandler
- CrashHandler
- AutoHandleExceptions
- CrashShieldHandler
- NoAutoExceptionHandling
- ErrorReportData
- ErrorReportHandler
- ThreadCheckHandler
- Excuse
- ExcusesForDesignViolations
- CertificateUtil
- OidcSecurityUtil
- DeviceLoginButton
- LoginButton
- ProfilePictureView
- ToolTipPopup
- All
public class ShareInternalUtility
com.facebook.share.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.
Field Summary
Modifier and Type | Field | Description |
---|---|---|
private final String | MY_STAGING_RESOURCES | |
private final String | STAGING_PARAM | |
public final static ShareInternalUtility | INSTANCE |
Method Summary
Method Detail
invokeCallbackWithException
final static UnitinvokeCallbackWithException(FacebookCallback<Sharer.Result> callback, Exception exception)
invokeCallbackWithError
final static UnitinvokeCallbackWithError(FacebookCallback<Sharer.Result> callback, String error)
invokeCallbackWithResults
final static UnitinvokeCallbackWithResults(FacebookCallback<Sharer.Result> callback, String postId, GraphResponse graphResponse)
getNativeDialogCompletionGesture
final static StringgetNativeDialogCompletionGesture(Bundle result)
Returns the gesture with which the user completed the native dialog. This is only returned if the user has previously authorized the calling app with basic permissions.
Parameters:
result
- the bundle passed back to onActivityResultgetShareDialogPostId
final static StringgetShareDialogPostId(Bundle result)
Returns the id of the published post. This is only returned if the user has previously given the app publish permissions.
Parameters:
result
- the bundle passed back to onActivityResulthandleActivityResult
final static BooleanhandleActivityResult(Integer requestCode, Integer resultCode, Intent data, ResultProcessor resultProcessor)
getShareResultProcessor
final static ResultProcessorgetShareResultProcessor(FacebookCallback<Sharer.Result> callback)
registerStaticShareCallback
final static UnitregisterStaticShareCallback(Integer requestCode)
registerSharerCallback
final static UnitregisterSharerCallback(Integer requestCode, CallbackManager callbackManager, FacebookCallback<Sharer.Result> callback)
getPhotoUrls
final static List<String> getPhotoUrls(SharePhotoContent photoContent, UUID appCallId)
getVideoUrl
final static StringgetVideoUrl(ShareVideoContent videoContent, UUID appCallId)
getMediaInfos
final static List<Bundle> getMediaInfos(ShareMediaContent mediaContent, UUID appCallId)
getTextureUrlBundle
final static BundlegetTextureUrlBundle(ShareCameraEffectContent cameraEffectContent, UUID appCallId)
removeNamespacesFromOGJsonArray
final static JSONArrayremoveNamespacesFromOGJsonArray(JSONArray jsonArray, Boolean requireNamespace)
removeNamespacesFromOGJsonObject
final static JSONObjectremoveNamespacesFromOGJsonObject(JSONObject jsonObject, Boolean requireNamespace)
getFieldNameAndNamespaceFromFullName
final static Pair<String, String> getFieldNameAndNamespaceFromFullName(String fullName)
invokeOnCancelCallback
final static UnitinvokeOnCancelCallback(FacebookCallback<Sharer.Result> callback)
invokeOnSuccessCallback
final static UnitinvokeOnSuccessCallback(FacebookCallback<Sharer.Result> callback, String postId)
invokeOnErrorCallback
final static UnitinvokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, GraphResponse response, String message)
invokeOnErrorCallback
final static UnitinvokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, String message)
invokeOnErrorCallback
final static UnitinvokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, FacebookException ex)
newUploadStagingResourceWithImageRequest
final static GraphRequestnewUploadStagingResourceWithImageRequest(AccessToken accessToken, Bitmap image, GraphRequest.Callback callback)
Creates a new Request configured to upload an image to create a staging resource. Staging resources allow you to post binary data such as images, in preparation for a post of an Open Graph object or action which references the image. The URI returned when uploading a staging resource may be passed as the image property for an Open Graph object or action.
Parameters:
accessToken
- the access token to use, or nullimage
- the image to uploadcallback
- a callback that will be called when the request is completed to handle success or error conditionsnewUploadStagingResourceWithImageRequest
final static GraphRequestnewUploadStagingResourceWithImageRequest(AccessToken accessToken, File file, GraphRequest.Callback callback)
Creates a new Request configured to upload an image to create a staging resource. Staging resources allow you to post binary data such as images, in preparation for a post of an Open Graph object or action which references the image. The URI returned when uploading a staging resource may be passed as the image property for an Open Graph object or action.
Parameters:
accessToken
- the access token to use, or nullfile
- the file containing the image to uploadcallback
- a callback that will be called when the request is completed to handle success or error conditionsnewUploadStagingResourceWithImageRequest
final static GraphRequestnewUploadStagingResourceWithImageRequest(AccessToken accessToken, Uri imageUri, GraphRequest.Callback callback)
Creates a new Request configured to upload an image to create a staging resource. Staging resources allow you to post binary data such as images, in preparation for a post of an Open Graph object or action which references the image. The URI returned when uploading a staging resource may be passed as the image property for an Open Graph object or action.
Parameters:
accessToken
- the access token to use, or nullimageUri
- the file:// or content:// Uri pointing to the image to uploadcallback
- a callback that will be called when the request is completed to handle success or error conditionsgetStickerUrl
final static BundlegetStickerUrl(ShareStoryContent storyContent, UUID appCallId)
getBackgroundAssetMediaInfo
final static BundlegetBackgroundAssetMediaInfo(ShareStoryContent storyContent, UUID appCallId)
getUriExtension
final static StringgetUriExtension(Uri uri)
getMY_STAGING_RESOURCES
final StringgetMY_STAGING_RESOURCES()
getSTAGING_PARAM
final StringgetSTAGING_PARAM()