Open GujjuFlutterGuy opened 1 year ago
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
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
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.
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';
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