sharePhotoToFacebookStory method
Implementation
@override
Future<SocialShareStatus> sharePhotoToFacebookStory({
required String appID,
required String filePath,
required String backgroundTopColor,
required String backgroundBottomColor,
}) async {
final result = await methodChannel.invokeMethod<String>(
photoFacebookStory,
{
'filePath': filePath,
'backgroundTopColor': backgroundTopColor,
'backgroundBottomColor': backgroundBottomColor,
'appID': appID,
},
);
return SocialShareStatus.values.firstWhere((element) => element.name == result, orElse: () => SocialShareStatus.failure);
}