romatroskin / social_share_plugin

Social Share to Facebook and Instagram Flutter plugin.
BSD 2-Clause "Simplified" License
41 stars 86 forks source link

Facebook feed share issue in Android #71

Open EktaNT opened 4 months ago

EktaNT commented 4 months ago

When attempting to share content on the Android device, the screen briefly flickers for a second, but nothing opens. Despite the presence of code to handle errors, it seems that the designated catch block isn't being triggered. Upon reviewing the logs, it's apparent that the app briefly transitions to an inactive state before quickly resuming. Also in iOS device it is working but only text is not able to share. Caption i added with the image is not display on share dialog. Facebook app id and client token is added in AndroidManifest file and info.plist file

try { await shareToFeedFacebookLink( url: myUrl, quote: message, ); } catch (error) { ScaffoldMessenger.of(context).showSnackBar( SnackBar( backgroundColor: Theme.of(context).primaryColor, content: Text('$error'), ), ); }