shareVideoBackgroundAssetContentToFacebookStory method

Future shareVideoBackgroundAssetContentToFacebookStory({
  1. required String fileProviderPath,
  2. required String? videoBackgroundAssetPath,
  3. String? dstPath,
  4. String? pageId,
  5. String? ref,
  6. List<String>? peopleIds,
  7. String? placeId,
  8. String? hashtag,
  9. String? contentUrl,
  10. String? attributionLink,
  11. List<String>? backgroundColorList,
  12. String? stickerPath,
})

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 video videoBackgroundAssetPath 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,
    },
  );
}