social_share_plugin icon indicating copy to clipboard operation
social_share_plugin copied to clipboard

Share Facebook Link don't call callback onSuccess function.

Open truonguit2010 opened this issue 4 years ago • 1 comments

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. Screen Shot 2020-05-14 at 15 54 03

Is it right?

truonguit2010 avatar May 14 '20 08:05 truonguit2010

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..

stannyc avatar Jul 13 '20 13:07 stannyc