FBSDKMessageDialog不会在iOS中发送消息中的视频

时间:2015-09-22 14:46:14

标签: ios objective-c facebook video fbsdk

我使用以下代码在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来完成?

0 个答案:

没有答案