appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
193 stars 230 forks source link

[ BUG ] : Can't get facebook and ig share to work #284

Closed KKTadena closed 4 months ago

KKTadena commented 6 months ago

Plugin name appinio_social_share: ^0.3.1

Describe the bug I'm getting this error: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/plain flg=0x10000001 pkg=com.instagram.android clip={text/plain {...}} (has extras) } when calling: appinioSocialShare.android.shareToInstagramDirect(message)

and this error: Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared. Please follow https://developers.facebook.com/docs/android/troubleshooting/#faq_267321845055988 to make the declaration. when calling:

appinioSocialShare.android
          .shareToFacebook(
        message,
       [],
      )
khanmujeeb687 commented 4 months ago

Hey @KKTadena , please add these changed to android manifest, we have already mentioned it in the documentation here. This will fix the issue for you. https://developers.facebook.com/docs/android/troubleshooting/#faq_267321845055988

Screenshot 2024-07-22 at 00 00 55

Closing this issue, If you still need some help. please reopen it. Thanks!