API reference
API reference
Select your platform
No SDKs available
No versions available

ovr_Media_ShareToFacebook Function

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 ovrShareMediaResultHandle. ovrMessage_Media_ShareToFacebook will be generated in response.
First call ovr_Message_IsError() to check if an error occurred.
If no error occurred, the message will contain a payload of type ovrShareMediaResultHandle. Extract the payload from the message handle with ovr_Message_GetShareMediaResult().

Signature

ovrRequest ovr_Media_ShareToFacebook(const char *postTextSuggestion, const char *filePath, ovrMediaContentType contentType)

Parameters

postTextSuggestion: const char * this text will prepopulate the facebook status text-input box within the share modal
filePath: const char * path to the file to be shared to facebook
contentType: ovrMediaContentType content type of the media to be shared

Returns