shareVideoBackgroundAssetContentToFacebookStory method
Share local video to Facebook story method using ShareStoryContent
class from Facebook share SDK.
However, ShareStoryContent
class is not working now so please use
shareBackgroundAssetFileToFacebookStory method instead.
The method required the local video (videoBackgroundAssetPath
) file path, and your custom
file provider path (fileProviderPath
) to access the local file.
Besides, you can provide a dstPath
to add the custom save folder path to cache the local file.
Some other properties:
-
stickerPath
to set the sticker asset for the videovideoBackgroundAssetPath
file -
backgroundColorList
the colors can be define the same format in shareStickerAssetToFacebookStory method example (#33FF33
), etc.
Working on: Android platform.
Implementation
Future<dynamic> shareVideoBackgroundAssetContentToFacebookStory({
required String fileProviderPath,
required String? videoBackgroundAssetPath,
String? dstPath,
String? pageId,
String? ref,
List<String>? peopleIds,
String? placeId,
String? hashtag,
String? contentUrl,
String? attributionLink,
List<String>? backgroundColorList,
String? stickerPath,
}) async {
return _channel.invokeMethod(
'shareVideoBackgroundAssetContentFacebookStory',
<String, dynamic>{
'dstPath': dstPath,
'fileProviderPath': fileProviderPath,
'hashtag': hashtag,
'pageId': pageId,
'ref': ref,
'peopleIds': peopleIds,
'placeId': placeId,
'contentUrl': contentUrl,
'attributionLink': attributionLink,
'backgroundColorList': backgroundColorList,
'videoBackgroundAssetPath': videoBackgroundAssetPath,
'stickerPath': stickerPath,
},
);
}