Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shareVideo failure #2520

Open
5 tasks done
Zero-Cjh opened this issue Dec 26, 2024 · 3 comments
Open
5 tasks done

shareVideo failure #2520

Zero-Cjh opened this issue Dec 26, 2024 · 3 comments

Comments

@Zero-Cjh
Copy link

Checklist before submitting a bug report

Xcode version

16.0.0

Facebook iOS SDK version

17.4.0

Dependency Manager

CocoaPods

SDK Framework

Share

Goals

I got a video's PHAsset from PhotoLibrary, and I uploaded it to ShareVideo and shared it, but the pulled page couldn't see the video, and after clicking the share button, it showed that facebook shared successfully, but I couldn't find this sharing in Facebook application.

Expected results

Share successfully

Actual results

Share Failure

Steps to reproduce

No response

Code samples & details

func shareVideo(_ asset: PHAsset, fromViewController: UIViewController) {
        let shareVideo: ShareVideo = .init(videoAsset: asset)
        let content: ShareVideoContent = .init()
        content.video = shareVideo
        let dialog: ShareDialog = .init(viewController: fromViewController, content: content, delegate: self)
        dialog.fromViewController = fromViewController
        dialog.shareContent = content
        dialog.delegate = self
        dialog.mode = .automatic
        dialog.shouldFailOnDataError = false
        dialog.show()
    }
@Zero-Cjh
Copy link
Author

IMG_0070

@Zero-Cjh
Copy link
Author

The resource doesn't seem to be loaded correctly. Everything worked well in the previous AVAsset, and this error only occurred after upgrading to PHAsset.

@sylvia-tencent
Copy link

I’m also experiencing a similar issue. I’m using PHAsset for sharing videos to the Facebook Feed, and it worked fine a few months ago. However, now the video doesn’t appear during sharing.

Facebook iOS SDK version: 17.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants