shareBackgroundImageAndStickerToFacebookStoryiOS method

Future shareBackgroundImageAndStickerToFacebookStoryiOS({
  1. required String appId,
  2. required List<String?>? photoBackgroundAssetPaths,
  3. required List<String?>? stickerAssetPaths,
  4. List<String>? backgroundTopColor,
  5. List<String>? backgroundBottomColor,
})

Share multiple local stickers and images to Facebook story on iOS platform method.

The method required the list of the local image and sticker paths (photoBackgroundAssetPaths, stickerAssetPaths) and your Facebook app id (appId)

Besides, you can provide the sticker top and bottom colors backgroundTopColor, backgroundBottomColor (dedault color is #222222)

Example with color:

LecleSocialShare.shareBackgroundImageAndStickerToFacebookStoryiOS(
  appId: 'your_facebook_app_id',
  photoBackgroundAssetPaths: ['your_image_paths'],
  stickerAssetPaths: ['your_sticker_paths'],
  backgroundTopColor: '#33FF33',
  backgroundBottomColor: '#FF00FF',
)

Working on: iOS platform.

Implementation

Future<dynamic> shareBackgroundImageAndStickerToFacebookStoryiOS({
  required String appId,
  required List<String?>? photoBackgroundAssetPaths,
  required List<String?>? stickerAssetPaths,
  List<String>? backgroundTopColor,
  List<String>? backgroundBottomColor,
}) async {
  return _channel.invokeMethod(
    'shareBackgroundImageAndStickerFacebookStoryiOS',
    <String, dynamic>{
      'appId': appId,
      'photoBackgroundAssetPaths': photoBackgroundAssetPaths,
      'stickerAssetPaths': stickerAssetPaths,
      'backgroundTopColor': backgroundTopColor,
      'backgroundBottomColor': backgroundBottomColor,
    },
  );
}