Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook sharing is not working on 1.3.0 latest version. #96

Open
GujjuFlutterGuy opened this issue Jul 5, 2022 · 1 comment
Open

Comments

@GujjuFlutterGuy
Copy link

I can see that I am able to share on WhatsApp but, While I try to share on Facebook there is nothing coming and the response I am getting is success

The problem is Facebook app is opening for a while but it goes stopped we jump back on your app. It's not working.

Note: I have added everything correctly in the manifest file also I have a proper Facebook ID listed on string.xml.

The code I have used is below:

`String msg = 'Flutter share is great!!\n Check out the full example at https://pub.dev/packages/flutter_share_me';
String url = 'https://pub.dev/packages/flutter_share_me';

String? response;
final FlutterShareMe flutterShareMe = FlutterShareMe();

response = await flutterShareMe.shareToFacebook(url: url,msg: msg);

print("RESPONSE: $response");

And below is the response I am getting

Launching lib/main.dart on Redmi Note 6 Pro in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Debug service listening on ws://127.0.0.1:51252/1tZVGWgqpMs=/ws
Syncing files to device Redmi Note 6 Pro...
I/Timeline(25744): Timeline: Activity_launch_request time:643974362 intent:Intent { act=com.facebook.platform.PLATFORM_ACTIVITY cat=[android.intent.category.DEFAULT] pkg=com.facebook.katana (has extras) }
I/flutter (25744): RESPONSE: success
I/le.test_flutte(25744): ProcessProfilingInfo new_methods=1926 is saved saved_to_disk=1 resolve_classes_delay=8000

@Rahim47
Copy link

Rahim47 commented Sep 21, 2022

Hi @GujjuFlutterGuy, I don't know if this has anything to do with the issue you're getting but I think you should reverse the arguments, the msg argument then the url one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants