thebergamo/react-native-fbsdk-next

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

roli5005 opened this issue ยท 1 comments

๐Ÿ› 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:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.7
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: ^0.73.4
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

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.