-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Checklist before submitting a bug report
- I've updated to the latest released version of the SDK
- I've searched for existing GitHub issues
- I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- I've read the Code of Conduct
- This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
16.1
Facebook iOS SDK version
18.0.0
Dependency Manager
CocoaPods
SDK Framework
Share
Goals
Can be shared normally on iPad
Expected results
Can be shared normally on iPad
Actual results
Using the method as follows: [FBSDKShareDialog showFromViewController:cuView withContent:linkContent delegate:self];
On iPhone, FBSDKShareDialog works fine and the delegate callback is triggered after the share is successful.
However, on iPad (17.7.8), the share operation is successful but the delegate methods such as didCompleteWithResults, didFailWithError and sharerDidCancel are not called.
After calling share on iPad and tapping share, a transparent SLComposeViewController appears at the top of the app, which blocks interaction with the app.
I have confirmed that the delegate is set up correctly and the parameters passed to showFromViewController:withContent:delegate: are correct. This does not happen on iPhone as the share dialog works fine and the delegate callback is also triggered correctly.
Steps to reproduce
Code samples & details
FBSDKShareLinkContent *linkContent = [[FBSDKShareLinkContent alloc] init];
linkContent.contentURL = [NSURL URLWithString:shareDic[@"shareContent"]];
[FBSDKShareDialog showFromViewController:cuView withContent:linkContent delegate:self];