shareImageBackgroundAssetContentToFacebookStory method
Share local image 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 (photoBackgroundAssetPath
) 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
stickerPath
to set the sticker asset for the image photoBackgroundAssetPath
file
backgroundColorList
the colors can be define the same format in
shareStickerAssetToFacebookStory method example (#33FF33
), etc.
Working on: Android platform.
Implementation
Future<dynamic> shareImageBackgroundAssetContentToFacebookStory({
required String fileProviderPath,
required String? photoBackgroundAssetPath,
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(
'shareImageBackgroundAssetContentFacebookStory',
<String, dynamic>{
'dstPath': dstPath,
'fileProviderPath': fileProviderPath,
'hashtag': hashtag,
'pageId': pageId,
'ref': ref,
'peopleIds': peopleIds,
'placeId': placeId,
'contentUrl': contentUrl,
'attributionLink': attributionLink,
'backgroundColorList': backgroundColorList,
'photoBackgroundAssetPath': photoBackgroundAssetPath,
'stickerPath': stickerPath,
},
);
}