facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.78k stars 3.54k forks source link

Sharing photos to Facebook doesn't work #2267

Open suyeshkandpal28 opened 12 months ago

suyeshkandpal28 commented 12 months ago

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()
adityagi02 commented 8 months ago

Any updates on this ?? @suyeshkandpal28