-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
FBSDKShareVideo failed, Error Message:"FBSDKErrorDeveloperMessageKey=Must refer to an asset file." #2396
Comments
We've attempted to use the Photos framework to obtain a PHAsset and it works. However, it requires manually creating the user interface, which is not our preference.
We prefer to use PHPickerViewController. Unfortunately, it doesn't seem to work as expected. Instead of receiving a PHAsset type, we only obtained a file URL. The same error as mentioned below occurred: "FBSDKErrorDeveloperMessageKey=Must refer to an asset file".
|
I'm having the exact same issue (Must refer to an asset file.). All was previously working with ALAsset then stopped working (I'm not sure when). Running on latest 17.4.0 framework. Tried to change over to PHAsset and same issue. Then tried passing local file and same issue. Passing NSData has never worked. I am really surprised more people aren't elevating this. Please expedite fixing!!! Thank you :) Maybe part of the issue is in the following not accounting for newer ph:// schema: https://raw.githubusercontent.com/facebook/facebook-ios-sdk/refs/heads/main/FBSDKShareKit/FBSDKShareKit/Content/ShareVideo.swift |
Have this issue too, tried sharing Using the url from The url has format |
Checklist before submitting a bug report
Xcode version
15.0
Facebook iOS SDK version
17.0.0
Dependency Manager
CocoaPods
SDK Framework
Share
Goals
can realize sharing video function
Expected results
can realize sharing video function
Actual results
rinting description of error:
Error Domain=com.facebook.sdk.share Code=2 "(null)" UserInfo={com.facebook.sdk:FBSDKErrorArgumentNameKey=videoURL, com.facebook.sdk:FBSDKErrorArgumentValueKey=file:///private/var/containers/Bundle/Application/6C33A060-062A-431F-BE09-6D77DBC603CA/EfunKrDemo.app/shareMedia.mp4, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Must refer to an asset file.}
Steps to reproduce
No response
Code samples & details
The text was updated successfully, but these errors were encountered: