-
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
Fields 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 Unit invokeCallbackWithException(FacebookCallback<Sharer.Result> callback, Exception exception)
-
invokeCallbackWithError
final static Unit invokeCallbackWithError(FacebookCallback<Sharer.Result> callback, String error)
-
invokeCallbackWithResults
final static Unit invokeCallbackWithResults(FacebookCallback<Sharer.Result> callback, String postId, GraphResponse graphResponse)
-
getNativeDialogCompletionGesture
final static String getNativeDialogCompletionGesture(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 onActivityResult
-
getShareDialogPostId
final static String getShareDialogPostId(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 onActivityResult
-
handleActivityResult
final static Boolean handleActivityResult(Integer requestCode, Integer resultCode, Intent data, ResultProcessor resultProcessor)
-
getShareResultProcessor
final static ResultProcessor getShareResultProcessor(FacebookCallback<Sharer.Result> callback)
-
registerStaticShareCallback
final static Unit registerStaticShareCallback(Integer requestCode)
-
registerSharerCallback
final static Unit registerSharerCallback(Integer requestCode, CallbackManager callbackManager, FacebookCallback<Sharer.Result> callback)
-
getPhotoUrls
final static List<String> getPhotoUrls(SharePhotoContent photoContent, UUID appCallId)
-
getVideoUrl
final static String getVideoUrl(ShareVideoContent videoContent, UUID appCallId)
-
getMediaInfos
final static List<Bundle> getMediaInfos(ShareMediaContent mediaContent, UUID appCallId)
-
getTextureUrlBundle
final static Bundle getTextureUrlBundle(ShareCameraEffectContent cameraEffectContent, UUID appCallId)
-
removeNamespacesFromOGJsonArray
final static JSONArray removeNamespacesFromOGJsonArray(JSONArray jsonArray, Boolean requireNamespace)
-
removeNamespacesFromOGJsonObject
final static JSONObject removeNamespacesFromOGJsonObject(JSONObject jsonObject, Boolean requireNamespace)
-
getFieldNameAndNamespaceFromFullName
final static Pair<String, String> getFieldNameAndNamespaceFromFullName(String fullName)
-
invokeOnCancelCallback
final static Unit invokeOnCancelCallback(FacebookCallback<Sharer.Result> callback)
-
invokeOnSuccessCallback
final static Unit invokeOnSuccessCallback(FacebookCallback<Sharer.Result> callback, String postId)
-
invokeOnErrorCallback
final static Unit invokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, GraphResponse response, String message)
-
invokeOnErrorCallback
final static Unit invokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, String message)
-
invokeOnErrorCallback
final static Unit invokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, FacebookException ex)
-
newUploadStagingResourceWithImageRequest
final static GraphRequest newUploadStagingResourceWithImageRequest(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 conditions
-
newUploadStagingResourceWithImageRequest
final static GraphRequest newUploadStagingResourceWithImageRequest(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 conditions
-
newUploadStagingResourceWithImageRequest
final static GraphRequest newUploadStagingResourceWithImageRequest(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 conditions
-
getStickerUrl
final static Bundle getStickerUrl(ShareStoryContent storyContent, UUID appCallId)
-
getBackgroundAssetMediaInfo
final static Bundle getBackgroundAssetMediaInfo(ShareStoryContent storyContent, UUID appCallId)
-
getUriExtension
final static String getUriExtension(Uri uri)
-
getMY_STAGING_RESOURCES
final String getMY_STAGING_RESOURCES()
-
getSTAGING_PARAM
final String getSTAGING_PARAM()
-
-
-
-