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
{com.facebook.sdk:FBSDKErrorArgumentNameKey=videoURL, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Must refer to an asset file., com.facebook.sdk:FBSDKErrorArgumentValueKey=/var/mobile/Media/DCIM/100APPLE/IMG_0201.MOV}
#2466
Open
5 tasks done
fengpuchao opened this issue
Aug 14, 2024
· 1 comment
This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
15.3
Facebook iOS SDK version
v17.0.3
Dependency Manager
Prebuilt Binaries
SDK Framework
Share
Goals
我想通过这三个任意的属性将视频分享到Facebook里面
/// The raw video data. @Property (nonatomic, copy) NSData * _Nullable data;
/// The representation of the video in the Photos library. @Property (nonatomic, strong) PHAsset * _Nullable videoAsset;
/// The file URL to the video. @Property (nonatomic, copy) NSURL * _Nullable videoURL;
Expected results
将选中的视频分享到Facebook
Actual results
Error Domain=com.facebook.sdk.share Code=2 "(null)" UserInfo={com.facebook.sdk:FBSDKErrorArgumentNameKey=videoURL, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Must refer to an asset file., com.facebook.sdk:FBSDKErrorArgumentValueKey=/var/mobile/Media/DCIM/100APPLE/IMG_0201.MOV}
Steps to reproduce
用这三方都无法实现视频的分享
/// The raw video data. @Property (nonatomic, copy) NSData * _Nullable data;
/// The representation of the video in the Photos library. @Property (nonatomic, strong) PHAsset * _Nullable videoAsset;
/// The file URL to the video. @Property (nonatomic, copy) NSURL * _Nullable videoURL;
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 :)
Checklist before submitting a bug report
Xcode version
15.3
Facebook iOS SDK version
v17.0.3
Dependency Manager
Prebuilt Binaries
SDK Framework
Share
Goals
我想通过这三个任意的属性将视频分享到Facebook里面
/// The raw video data.
@Property (nonatomic, copy) NSData * _Nullable data;
/// The representation of the video in the Photos library.
@Property (nonatomic, strong) PHAsset * _Nullable videoAsset;
/// The file URL to the video.
@Property (nonatomic, copy) NSURL * _Nullable videoURL;
Expected results
将选中的视频分享到Facebook
Actual results
Error Domain=com.facebook.sdk.share Code=2 "(null)" UserInfo={com.facebook.sdk:FBSDKErrorArgumentNameKey=videoURL, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Must refer to an asset file., com.facebook.sdk:FBSDKErrorArgumentValueKey=/var/mobile/Media/DCIM/100APPLE/IMG_0201.MOV}
Steps to reproduce
用这三方都无法实现视频的分享
/// The raw video data.
@Property (nonatomic, copy) NSData * _Nullable data;
/// The representation of the video in the Photos library.
@Property (nonatomic, strong) PHAsset * _Nullable videoAsset;
/// The file URL to the video.
@Property (nonatomic, copy) NSURL * _Nullable videoURL;
Code samples & details
The text was updated successfully, but these errors were encountered: