social_share_plugin
social_share_plugin copied to clipboard
Share Facebook Link don't call callback onSuccess function.
Hi,
Step 1: I just checked your facebook share link function and it don't call callback onSuccess function.
Step 2: I add registrar.addActivityResultListener(plugin);
in registerWith function, and it work OK now.
Is it right?
I do also facing the same problem with shareToFeedFacebook() method.... here's my code:
await SocialSharePlugin.shareToFeedFacebook(
path: file.path,
onSuccess: (x) async {
print(x);
print('FACEBOOK SUCCESS');
return;
},
onCancel: () {
print('FACEBOOK CANCELLED');
return;
},
onError: (error) {
print('FACEBOOK ERROR $error');
return;
});
nothing is printed..