Functions - Media¶
Functions¶
media_share_to_facebook¶
media_share_to_facebook(post_text_suggestion : String
, file_path : String
, content_type : MediaContentType
)
Sends a request to initiate a flow to share media to Facebook. At the moment, only photos can be shared. The post_text_suggestion
argument is a suggestion for the body of the post, file_path
if an absolute path to an image and content_type
is the type of content (photos only for now).
Returns: A GDOculusPlatformPromise
that will contain a Dictionary
with information about the status of the request. The promise will error if the request couldn't be completed.
Enums:
MediaContentType:
Name | Value | Description |
---|---|---|
MEDIA_CONTENT_TYPE_PHOTO | 1 | The content/file is a photo. |
Example response:
share_media_status
can beUNKNOWN
,SHARED
orCANCELED
.