facebook / facebook/facebook-ios-sdk

shareVideo failure

Open
#2,520 8 comments 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
Swift
Stars
8.1k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

### 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](https://github.com/facebook/facebook-ios-sdk/issues)
- [X] I've looked for existing answers on [Stack Overflow](https://facebook.stackoverflow.com), the [Facebook Developer Community Forum](https://developers.facebook.com/community/) and the [Facebook Developers Group](https://www.facebook.com/groups/fbdevelopers)
- [X] I've read the [Code of Conduct](https://github.com/facebook/facebook-ios-sdk/blob/main/CODE_OF_CONDUCT.md)
- [X] This issue is not security related and can safely be disclosed publicly on GitHub

### 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

```swift
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()
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.