【问题标题】:FB dialog app nameFB 对话框应用程序名称
【发布时间】:2015-03-12 11:58:00
【问题描述】:

当我尝试使用 presentOSIntegratedShareDialogModallyFrom 在 Facebook 上分享时,我看不到应用名称。我使用以下代码:

[FBSettings setDefaultDisplayName:[[FBSettings defaultDisplayName] precomposedStringWithCanonicalMapping]];
FBLinkShareParams *params = [[FBLinkShareParams alloc] init];
params.link = [NSURL URLWithString:[arrDetailsOfTour valueForKey:@"WebAddress"]];
params.picture = [NSURL URLWithString:[arrDetailsOfTour objectForKey:@"ImageUrl"]];
params.name = [NSString stringWithFormat:@"%@",[arrDetailsOfTour valueForKey:@"CompanyName"]];

[FBDialogs presentOSIntegratedShareDialogModallyFrom:self initialText:[NSString stringWithFormat:@"%@",[arrDetailsOfTour valueForKey:@"CompanyName"]] image:toursImageView.image url:[NSURL URLWithString:[arrDetailsOfTour valueForKey:@"WebAddress"]] handler:^(FBOSIntegratedShareDialogResult result, NSError *error) {
    if(error) {
        NSLog(@"Error: %@", error.description);
    } else {
        NSLog(@"Success!");
    }
}];

但我无法在帖子中看到应用名称。我已将 Facebook 显示名称放入 plist 中,但仍不显示。请帮忙。

【问题讨论】:

    标签: ios iphone facebook fbdialogs


    【解决方案1】:

    Apple 控制 iOS 集成对话框的 UI,它们不显示应用名称。原生 Facebook 分享对话框和网络对话框。

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-12
      • 1970-01-01
      相关资源
      最近更新 更多