-
public final class ShareInternalUtilitycom.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.
-
-
Method Summary
-
-
Method Detail
-
invokeCallbackWithException
static void invokeCallbackWithException(FacebookCallback<Sharer.Result> callback, Exception exception)
-
invokeCallbackWithError
static void invokeCallbackWithError(FacebookCallback<Sharer.Result> callback, String error)
-
invokeCallbackWithResults
static void invokeCallbackWithResults(FacebookCallback<Sharer.Result> callback, String postId, GraphResponse graphResponse)
-
getNativeDialogCompletionGesture
static String getNativeDialogCompletionGesture(Bundle result)
Returns the gesture with which the user completed the native dialog. This is only returned ifthe user has previously authorized the calling app with basic permissions.
- Parameters:
result- the bundle passed back to onActivityResult
-
getShareDialogPostId
static String getShareDialogPostId(Bundle result)
Returns the id of the published post. This is only returned if the user has previously giventhe app publish permissions.
- Parameters:
result- the bundle passed back to onActivityResult
-
handleActivityResult
static boolean handleActivityResult(int requestCode, int resultCode, Intent data, ResultProcessor resultProcessor)
-
getShareResultProcessor
static ResultProcessor getShareResultProcessor(FacebookCallback<Sharer.Result> callback)
-
registerStaticShareCallback
static void registerStaticShareCallback(int requestCode)
-
registerSharerCallback
static void registerSharerCallback(int requestCode, CallbackManager callbackManager, FacebookCallback<Sharer.Result> callback)
-
getPhotoUrls
static List<String> getPhotoUrls(SharePhotoContent photoContent, UUID appCallId)
-
getVideoUrl
static String getVideoUrl(ShareVideoContent videoContent, UUID appCallId)
-
getMediaInfos
static List<Bundle> getMediaInfos(ShareMediaContent mediaContent, UUID appCallId)
-
getTextureUrlBundle
static Bundle getTextureUrlBundle(ShareCameraEffectContent cameraEffectContent, UUID appCallId)
-
toJSONObjectForCall
static JSONObject toJSONObjectForCall(UUID callId, ShareOpenGraphContent content)
-
toJSONObjectForWeb
static JSONObject toJSONObjectForWeb(ShareOpenGraphContent shareOpenGraphContent)
-
removeNamespacesFromOGJsonArray
static JSONArray removeNamespacesFromOGJsonArray(JSONArray jsonArray, boolean requireNamespace)
-
removeNamespacesFromOGJsonObject
static JSONObject removeNamespacesFromOGJsonObject(JSONObject jsonObject, boolean requireNamespace)
-
getFieldNameAndNamespaceFromFullName
static Pair<String, String> getFieldNameAndNamespaceFromFullName(String fullName)
-
newUploadStagingResourceWithImageRequest
static GraphRequest newUploadStagingResourceWithImageRequest(AccessToken accessToken, Bitmap image, GraphRequest.Callback callback)
Creates a new Request configured to upload an image to create a staging resource. Stagingresources allow you to post binary data such as images, in preparation for a post of an OpenGraph object or action which references the image. The URI returned when uploading a stagingresource 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 successor error conditions
-
newUploadStagingResourceWithImageRequest
static GraphRequest newUploadStagingResourceWithImageRequest(AccessToken accessToken, File file, GraphRequest.Callback callback)
Creates a new Request configured to upload an image to create a staging resource. Stagingresources allow you to post binary data such as images, in preparation for a post of an OpenGraph object or action which references the image. The URI returned when uploading a stagingresource 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 successor error conditions
-
newUploadStagingResourceWithImageRequest
static GraphRequest newUploadStagingResourceWithImageRequest(AccessToken accessToken, Uri imageUri, GraphRequest.Callback callback)
Creates a new Request configured to upload an image to create a staging resource. Stagingresources allow you to post binary data such as images, in preparation for a post of an OpenGraph object or action which references the image. The URI returned when uploading a stagingresource 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 successor error conditions
-
getMostSpecificObjectType
@Nullable() static LikeView.ObjectType getMostSpecificObjectType(LikeView.ObjectType objectType1, LikeView.ObjectType objectType2)
-
getStickerUrl
@Nullable() static Bundle getStickerUrl(ShareStoryContent storyContent, UUID appCallId)
-
getBackgroundAssetMediaInfo
@Nullable() static Bundle getBackgroundAssetMediaInfo(ShareStoryContent storyContent, UUID appCallId)
-
getUriExtension
@Nullable() static String getUriExtension(Uri uri)
-
-
-
-