facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

Sharing photos to Facebook doesn't work

Open suyeshkandpal28 opened this issue 2 years ago • 3 comments

Checklist before submitting a bug report

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()

suyeshkandpal28 avatar Sep 27 '23 05:09 suyeshkandpal28

Any updates on this ?? @suyeshkandpal28

adityagi02 avatar Jan 03 '24 10:01 adityagi02