shareBitmapImageBackgroundAssetToFacebookStory method
Share local image bitmap to Facebook story method using ShareStoryContent
class from Facebook share SDK.
However, ShareStoryContent
class is not working now so please use
shareBackgroundAssetFileToFacebookStory or shareStickerAssetToFacebookStory
methods instead.
The method required the local image (imagePath
) 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
and some other properties
videoBackgroundAssetPath
, photoBackgroundAssetPath
to set the background asset for the image imagePath
file (video or photo)
stickerPath
to set the sticker asset for the imagePath
file
backgroundColorList
the colors can be define the same format in
shareStickerAssetToFacebookStory method example (#33FF33
), etc.
Working on: Android platform.
Implementation
Future<dynamic> shareBitmapImageBackgroundAssetToFacebookStory({
required String fileProviderPath,
required String? imagePath,
String? dstPath,
String? pageId,
String? ref,
List<String>? peopleIds,
String? placeId,
String? hashtag,
String? contentUrl,
String? attributionLink,
List<String>? backgroundColorList,
String? videoBackgroundAssetPath,
String? photoBackgroundAssetPath,
String? stickerPath,
}) async {
return _channel.invokeMethod(
'shareBitmapImageBackgroundAssetFacebookStory',
<String, dynamic>{
'imagePath': imagePath,
'fileProviderPath': fileProviderPath,
'dstPath': dstPath,
'hashtag': hashtag,
'pageId': pageId,
'ref': ref,
'peopleIds': peopleIds,
'placeId': placeId,
'contentUrl': contentUrl,
'attributionLink': attributionLink,
'backgroundColorList': backgroundColorList,
'videoBackgroundAssetPath': videoBackgroundAssetPath,
'photoBackgroundAssetPath': photoBackgroundAssetPath,
'stickerPath': stickerPath,
},
);
}