FB对话框应用名称

时间:2015-03-12 11:58:00

标签: ios iphone facebook fbdialogs

当我尝试使用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中,但它仍然没有显示。请帮忙。

1 个答案:

答案 0 :(得分:0)

Apple控制iOS集成对话框的UI,但它们不显示应用程序名称。本地Facebook共享对话框和网络对话框将会。