我在我的应用程序中使用Facebook分享。我想在共享内容中添加多个标签。我成功添加了一个标签,但是我需要添加多个标签。这是我到目前为止使用的代码:
FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
dialog.fromViewController = self;
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentTitle = APP_NAME;
content.contentDescription = text;
if ([arrAllEvents count]>0) {
content.imageURL = [NSURL URLWithString:[[arrAllEvents valueForKey:@"flyer_image"] objectAtIndex:index1]];
}
content.contentURL = url;
NSString *strHashtag =[NSString stringWithFormat:@"%@ %@",@"#Book",@"#Crazy"];
content.hashtag = [FBSDKHashtag hashtagWithString:@"#Crazy"];
dialog.shareContent = content;
dialog.mode = FBSDKShareDialogModeFeedWeb;
[dialog show];
最佳答案
不幸的是,FB更新了他们的policy。您只能使用 1标签。
关于ios - 在Facebook上共享内容时如何添加多个主题标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46398809/