You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
15.4
Facebook iOS SDK version
17.3.0
Dependency Manager
CocoaPods
SDK Framework
Share
Goals
Check the root cause of this error.
Expected results
I want the video to be fully shared from the app to Facebook Story.
Actual results
The app switches to Facebook and flashes one frame of my video, then jumps back to my app. When I go back, Facebook displays normally (not on the edit story screen as expected).
Xcode console noti a message like this: Snapshot request 0x300496a30 complete with error: <NSError: 0x3005396e0; domain: FBSSceneSnapshotErrorDomain; code: 2; "the request was denied"> { NSLocalizedDescription = an error occurred during a scene snapshotting operation; }
The issue was tested on 3 devices and it was found that, as of now, it only occurs on iOS 16.5 and 17.3.1, while iOS 15.2.1 runs normally.
My video information: Resolution: 1080x1920 Length: 0:18s Size: 7,2 MB
Steps to reproduce
No response
Code samples & details
if #available(iOS 10.0,*){letpasteboardOptions:[UIPasteboard.OptionsKey:Any]=[:]letbackgroundVideo=try?Data(contentsOf:URL(fileURLWithPath: videoFile))varpasteboardItems=[String: Any]()
if let videoBackgroundShare = backgroundVideo {pasteboardItems["com.facebook.sharedSticker.backgroundVideo"]= videoBackgroundShare
pasteboardItems["com.facebook.sharedSticker.appID"]="<my-facebook-app-id>"}UIPasteboard.general.setItems([pasteboardItems], options: pasteboardOptions)leturlString="\(stories)://share?source_application=<my-facebook-app-id>"leturlScheme=URL(string: urlString)UIApplication.shared.open(urlScheme!, options:[:]){ success in
if success {print("[DEBUGGING] sharing success")}else{print("[DEBUGGING] sharing failure")}}}
The text was updated successfully, but these errors were encountered:
Checklist before submitting a bug report
Xcode version
15.4
Facebook iOS SDK version
17.3.0
Dependency Manager
CocoaPods
SDK Framework
Share
Goals
Check the root cause of this error.
Expected results
I want the video to be fully shared from the app to Facebook Story.
Actual results
Snapshot request 0x300496a30 complete with error: <NSError: 0x3005396e0; domain: FBSSceneSnapshotErrorDomain; code: 2; "the request was denied"> { NSLocalizedDescription = an error occurred during a scene snapshotting operation; }
Resolution: 1080x1920 Length: 0:18s Size: 7,2 MB
Steps to reproduce
No response
Code samples & details
The text was updated successfully, but these errors were encountered: