facebook-ios-sdk
facebook-ios-sdk copied to clipboard
Sharing photos to Facebook doesn't work
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
15.0
Facebook iOS SDK version
16.1.3
Dependency Manager
CocoaPods
SDK Framework
Share
Goals
Want to share photo from our app to facebook app
Expected results
sharing photo's from our app to facebook
Actual results
if I tap share, then Facebook, the screen makes a brief bounce, then nothing happens. I can share to Messages, email, and Notes, but Facebook just bounce.
func sharerDidCancel(_ sharer: FBSDKShareKit.Sharing)
this method always calling when I click on facebook to share
Steps to reproduce
let photo = SharePhoto(image: image, isUserGenerated: false) let content = SharePhotoContent() content.photos = [photo] let dialog = ShareDialog( viewController: self, content: content, delegate: self ) dialog.mode = .automatic
// Recommended to validate before trying to display the dialog
do {
try dialog.validate()
} catch {
// Handle error
}
dialog.show()
Code samples & details
let photo = SharePhoto(image: image, isUserGenerated: false)
let content = SharePhotoContent()
content.photos = [photo]
let dialog = ShareDialog(
viewController: self,
content: content,
delegate: self
)
dialog.mode = .automatic
// Recommended to validate before trying to display the dialog
do {
try dialog.validate()
} catch {
// Handle error
}
dialog.show()
Any updates on this ?? @suyeshkandpal28