thebergamo / react-native-fbsdk-next

MIT License
633 stars 165 forks source link

FaceboookContentProvider is not added to AndroidManifest using the expo plugin #486

Closed MorganDavid closed 2 months ago

MorganDavid commented 3 months ago

🐛 Bug Report

Are we expected to add FacebookContentProvider to our expo project manually or is it a bug that the expo plugin in this repo doesn't add it?

To Reproduce

try to run ShareDialog.show with contentType photo. FacebookContentProvider is required for sharing photos: https://developers.facebook.com/docs/reference/android/current/class/FacebookContentProvider/

Code Example

    const content: SharePhotoContent = {
      contentType: "photo",
      photos: [{ imageUrl: "url to local file" }],
    };

    const canShow = await ShareDialog.canShow(content);
    if (!canShow) return;
    await ShareDialog.show(content); // error, missing FacebookContentProvider
stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.