简体   繁体   中英

Sharing a video with a caption using Facebook iOS SDK

I'm using the latest version of the Facebook SDK.

Sharing a photo with a caption is easy:

FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
FBSDKSharePhoto *photo = [FBSDKSharePhoto photoWithImage:image userGenerated:YES];
photo.caption = txt_desc.text;
content.photos = @[photo];
[FBSDKShareAPI shareWithContent:content delegate:nil];

But the .caption property is not found on FBSDKShareVideo or FBSDKShareVideoContent. I have gone down the list for all the properties available to FBSDKShareVideo and FBSDKShareVideoContent but there's nothing that seems like it would hold the caption. The FB SDK documentation doesn't give any answers either.

I know it's possible to share a video with a caption on iOS because the Instagram iOS app does it. I just don't know how. Any one have any idea?

正如您可以在FBSDKShareVideo文档中阅读的FBSDKShareVideo ,它不支持提供描述/说明。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM