Android SDK Version


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 TypeFieldDescription
private final StringMY_STAGING_RESOURCES
private final StringSTAGING_PARAM
public final static ShareInternalUtilityINSTANCE
Method Summary
Modifier and TypeMethodDescription
final static UnitinvokeCallbackWithException(FacebookCallback<Sharer.Result> callback, Exception exception)
final static UnitinvokeCallbackWithError(FacebookCallback<Sharer.Result> callback, String error)
final static UnitinvokeCallbackWithResults(FacebookCallback<Sharer.Result> callback, String postId, GraphResponse graphResponse)
final static StringgetNativeDialogCompletionGesture(Bundle result) Returns the gesture with which the user completed the native dialog.
final static StringgetShareDialogPostId(Bundle result) Returns the id of the published post.
final static BooleanhandleActivityResult(Integer requestCode, Integer resultCode, Intent data, ResultProcessor resultProcessor)
final static ResultProcessorgetShareResultProcessor(FacebookCallback<Sharer.Result> callback)
final static UnitregisterStaticShareCallback(Integer requestCode)
final static UnitregisterSharerCallback(Integer requestCode, CallbackManager callbackManager, FacebookCallback<Sharer.Result> callback)
final static List<String>getPhotoUrls(SharePhotoContent photoContent, UUID appCallId)
final static StringgetVideoUrl(ShareVideoContent videoContent, UUID appCallId)
final static List<Bundle>getMediaInfos(ShareMediaContent mediaContent, UUID appCallId)
final static BundlegetTextureUrlBundle(ShareCameraEffectContent cameraEffectContent, UUID appCallId)
final static JSONArrayremoveNamespacesFromOGJsonArray(JSONArray jsonArray, Boolean requireNamespace)
final static JSONObjectremoveNamespacesFromOGJsonObject(JSONObject jsonObject, Boolean requireNamespace)
final static Pair<String, String>getFieldNameAndNamespaceFromFullName(String fullName)
final static UnitinvokeOnCancelCallback(FacebookCallback<Sharer.Result> callback)
final static UnitinvokeOnSuccessCallback(FacebookCallback<Sharer.Result> callback, String postId)
final static UnitinvokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, GraphResponse response, String message)
final static UnitinvokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, String message)
final static UnitinvokeOnErrorCallback(FacebookCallback<Sharer.Result> callback, FacebookException ex)
final static GraphRequestnewUploadStagingResourceWithImageRequest(AccessToken accessToken, Bitmap image, GraphRequest.Callback callback) Creates a new Request configured to upload an image to create a staging resource.
final static GraphRequestnewUploadStagingResourceWithImageRequest(AccessToken accessToken, File file, GraphRequest.Callback callback) Creates a new Request configured to upload an image to create a staging resource.
final static GraphRequestnewUploadStagingResourceWithImageRequest(AccessToken accessToken, Uri imageUri, GraphRequest.Callback callback) Creates a new Request configured to upload an image to create a staging resource.
final static BundlegetStickerUrl(ShareStoryContent storyContent, UUID appCallId)
final static BundlegetBackgroundAssetMediaInfo(ShareStoryContent storyContent, UUID appCallId)
final static StringgetUriExtension(Uri uri)
final StringgetMY_STAGING_RESOURCES()
final StringgetSTAGING_PARAM()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 onActivityResult

getShareDialogPostId

 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 onActivityResult

handleActivityResult

 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 null
image - the image to upload
callback - a callback that will be called when the request is completed to handle success or error conditions

newUploadStagingResourceWithImageRequest

 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 null
file - the file containing the image to upload
callback - a callback that will be called when the request is completed to handle success or error conditions

newUploadStagingResourceWithImageRequest

 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 null
imageUri - the file:// or content:// Uri pointing to the image to upload
callback - a callback that will be called when the request is completed to handle success or error conditions

getStickerUrl

 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()