thebergamo / react-native-fbsdk-next

MIT License
693 stars 167 forks source link

(iOS) ShareDialog.show(shareContent) does not show any sharing options. #528

Closed roli5005 closed 4 months ago

roli5005 commented 5 months ago

🐛 Bug Report

When trying to share a photo or a video using this library, sometimes the web view that should display the sharing options, is empty. Tried debugging but couldn't find any logs to help with finding the possible issue. IMG_1691

To Reproduce

Couldn't find specific steps to reproduce.

Expected Behavior

Should show the possible sharing options (feed/ story/ reels/ groups) for the content passed to the ShareDialog

Code Example

shareMediaContent = { contentType: 'video', video: { localUrl: shareObject.mediaLocalUrl ?? '' }, };

ShareDialog.canShow(shareMediaContent) .then(function (canShow) { if (canShow) { return ShareDialog.show(shareMediaContent); } else { console.log('Error on dialog', 'Cannot show dialog'); errorCallback({ isCancelled: false, postId: shareObject.providerId, errMessage: 'Cannot show dialog', }); } })

Environment

Binaries: Node: version: 21.6.1 path: /opt/homebrew/bin/node Yarn: version: 1.22.21 path: /opt/homebrew/bin/yarn npm: version: 10.2.4 path: /opt/homebrew/bin/npm Watchman: version: 2024.01.22.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

stale[bot] commented 4 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.