shareToFacebook
(
postTextSuggestion
, filePath
, contentType
)
|
Launch the Share to Facebook modal, allowing users to share local media files to Facebook. Accepts a postTextSuggestion string for the default text of the Facebook post. Requires a filePath string as the path to the image to be shared to Facebook. This image should be located in your app's internal storage directory. Requires a contentType indicating the type of media to be shared (only 'photo' is currently supported). The payload for the result is defined as com.meta.horizon.platform.ovr.models.ShareMediaResult.
Signature
static Request<com.meta.horizon.platform.ovr.models.ShareMediaResult> com.meta.horizon.platform.ovr.requests.Media.shareToFacebook(String postTextSuggestion, String filePath, MediaContentType contentType) Parameters postTextSuggestion: StringÂ
- this text will prepopulate the facebook status text-input box within the share modal
filePath: StringÂ
- path to the file to be shared to facebook
contentType: MediaContentTypeÂ
- content type of the media to be shared
|