facebook / facebook-ios-sdk

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

Facebook Share Not Working #2404

Closed joycastle-gaoyang closed 2 weeks ago

joycastle-gaoyang commented 2 weeks ago

Checklist before submitting a bug report

Xcode version

15.2

Facebook iOS SDK version

17.0.0

Dependency Manager

CocoaPods

SDK Framework

Share

Goals

Sharing function is working properly

Expected results

Sharing function is working properly

Actual results

The share function doesn't work properly and displays a blank page IMG_8992

Steps to reproduce

No special reproduction steps are needed, using the samples/FacebookShareSample project and replacing the relevant information with our project's will reproduce the issue.

FacebookAppID: 342073336607831 FacebookClientToken: cf3d11a9410df20bf58c8f25f3f48a37

Code samples & details

@IBAction func shareLink() {
        guard let url = URL(string: "https://newsroom.fb.com/") else {
            preconditionFailure("URL is invalid")
        }

        let content = ShareLinkContent()
        content.contentURL = url
        content.hashtag = Hashtag("#bestSharingSampleEver")

        dialog(withContent: content).show()
    }
joycastle-gaoyang commented 2 weeks ago

Also, I tested the 16.3.1 version of sample and the same bug exists.

alwayswith commented 2 weeks ago

same here

ceejayoz commented 2 weeks ago

This appears to be an issue with the Facebook iOS app itself; if I try to share a photo from Apple Photos to Facebook "story" is the only option shown. It previously would offer "Feed", "Group", "Reel" as options.

mazhigbee-pb commented 2 weeks ago

This appears to be an issue with the Facebook iOS app itself; if I try to share a photo from Apple Photos to Facebook "story" is the only option shown. It previously would offer "Feed", "Group", "Reel" as options.

Having the same issue.. Only seeing the "Stories" option. The other options (feed/group/reels) were working up until a few days ago.

RushanB commented 2 weeks ago

Same here

joycastle-gaoyang commented 2 weeks ago

I upgraded the Facebook App from the AppStore to the latest version and this resolved the issue. IMG_8996