【问题标题】:How to add multiple hashtag when sharing Content on Facebook如何在 Facebook 上分享内容时添加多个主题标签
【发布时间】:2018-03-06 01:05:34
【问题描述】:

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

【问题讨论】:

  • 很确定你只能添加一个;这是一个故意限制,以阻止应用程序使用该功能变得过于垃圾。

标签: ios objective-c facebook hashtag facebook-share


【解决方案1】:

很遗憾,FB 更新了他们的policy。您只能有 1 个标签

【讨论】:

    猜你喜欢
    • 2016-05-24
    • 2016-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-22
    • 1970-01-01
    • 1970-01-01
    • 2017-12-02
    相关资源
    最近更新 更多