Skip to content

FBSDKShareDialog delegate callback issue on iPad #2605

@DCEdit

Description

@DCEdit

Checklist before submitting a bug report

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

Image

Code samples & details

FBSDKShareLinkContent *linkContent = [[FBSDKShareLinkContent alloc] init];
linkContent.contentURL = [NSURL URLWithString:shareDic[@"shareContent"]];
[FBSDKShareDialog showFromViewController:cuView withContent:linkContent delegate:self];

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions