shareToFacebookStory method

  1. @override
Future<bool> shareToFacebookStory({
  1. String? stickerAssetPath,
  2. String? backgroundAssetPath,
  3. String? topBackgroundColor,
  4. String? bottomBackgroundColor,
  5. required String facebookAppId,
  6. String? text,
})
override

Shares background and sticker media directly to Facebook Stories.

Implementation

@override
Future<bool> shareToFacebookStory({
  String? stickerAssetPath,
  String? backgroundAssetPath,
  String? topBackgroundColor,
  String? bottomBackgroundColor,
  required String facebookAppId,
  String? text,
}) async {
  final result = await methodChannel.invokeMethod<bool>('shareToFacebookStory', {
    'stickerAssetPath': stickerAssetPath,
    'backgroundAssetPath': backgroundAssetPath,
    'topBackgroundColor': topBackgroundColor,
    'bottomBackgroundColor': bottomBackgroundColor,
    'facebookAppId': facebookAppId,
    'text': text,
  });
  return result ?? false;
}