我使用以下代码在Facebook上分享视频:
NSURL *videoURL = [NSURL URLWithString:[self.myApp getVideoAssetURL]];
// it returns AssetURL of video
FBSDKShareVideo *video = [[FBSDKShareVideo alloc] init];
video.videoURL = videoURL;
FBSDKShareVideoContent *content = [[FBSDKShareVideoContent alloc] init];
content.video = video;
[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];
此代码正常工作,但当我替换以下代码行时
[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];
与
[FBSDKMessageDialog showWithContent:content delegate:self];
在Facebook上以私信发送视频。信使显示朋友列表但不显示视频并保持"发送"选择朋友后按钮禁用。
有没有其他方法可以做到这一点,或者可以通过使用FBSDKShareDialog来完成?