facebook-ios-sdk
facebook-ios-sdk copied to clipboard
Feature Request: Dismiss ShareDialog after a content has been shared
Checklist before submitting a feature request
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing Github issues
- [X] I've read the Code of Conduct
Goals
After a content is shared with Facebook, the share pop up view will be dismissed
Expected results
Dismiss the ShareDialog
after the content has been shared with Facebook
Code samples & details
// INSERT YOUR CODE HERE
let content = ShareLinkContent()
let showDialog = ShareDialog(viewController: presenter, content: content, delegate: self)
if (showDialog.canShow) {
showDialog.show()
}
I have the same issue in iOS 15/16 on any of my iDevices for my Obj-C project. After sharing to Facebook with FBSDKShareDialogModeShareSheet the "Shared to Facebook!" confirmation shows but there is no way to dismiss. Also, delegates never get called for success (even though I see post to my Facebook test account). Please remedy; I don't know how everyone isn't complaining about this as it cripples the app so nothing else can be done!
This should be classified as a bug not an enhancement correct? Also happens with sample swift project from this repo.
ALSO, if you start share workflow, so that share sheet shows at bottom, but decide to cancel you can't cancel or dismiss share sheet. You're stuck having to select a Share to option which this gets you stuck at end of workflow as stated above. PLEASE PLEASE FIX!
tried Facebook-sdk 14.0.0 14.0.1 Xcode version 13.4.1 14.0
I had the same problem
I hope after a content is shared with Facebook, the share pop up view will be dismissed
workflow share sheet shows at bottom,but you can't cancel or dismiss share sheet.
FBSDKSharePhoto * sharePhoto = [[FBSDKSharePhoto alloc] initWithImage:uiImage isUserGenerated:YES];
FBSDKSharePhotoContent* content = [[FBSDKSharePhotoContent alloc] init];
content.photos = @[sharePhoto];
[FBSDKShareDialog showFromViewController:[IZLAuthon currentViewController] withContent:content delegate:self];
same issue with device installed lastest facebook app (382), installed facebook app (247) is no bug using 14.1.0 version SDK
我也遇到了这样的问题,
I have the same issue。
+1
I did some hypotheses on this, I think it is a bug related to the Facebook App. Details are mentioned on #2114
+1
Please send this issue to Facebook App development team ASAP. It's making our app stuck often and impacting user expriences bad.
+1
I have the same issue
Any update facing the same issue.
Same here, delegate is never being called after using DialogMode shareSheet
it just works when using native
mode.
I can' even dismiss the SLComposeViewController created by the SDK, it blocks our App once displayed.
The issue is in Facebook app which is fixed already and will be released in v383. Please refer the issue details in #2114
It is available now in the new release: https://github.com/facebook/facebook-ios-sdk/issues/2114#issuecomment-1244843458
Closing as fixed per #2114