ios - 在Facebook上共享内容时如何添加多个主题标签

标签 ios objective-c facebook hashtag facebook-share

我在我的应用程序中使用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/

相关文章:

facebook采访 : find out the order that gives max sum by selecting boxes with number in a ring, 旁边两个被摧毁时

c# - 如何获取 Facebook 应用程序的当前在线用户列表?

ios - 使 UIBarButtonItem 像 UIToolbar 上的 UILabels 一样,不会变暗并且不会在触摸时发光

ios - 从 swift 代码中遵循 Objective 中定义的协议(protocol)时出错

ios - 在遍历核心数据对象数组时访问日期类型属性随机失败

objective-c - 传入自定义选择器实现

iphone - iOS - 无法从 UITableViewCell 中动态创建的按钮调用操作

objective-c - 滚动时表格单元格内容损坏

ios - 检测 iPhone 电源按钮按下事件以防止 iOS 中的屏幕截图

java - 如何在 Facebook 分享对话框中设置描述(你在想什么?)