gpt4 book ai didi

ios - 使用 FBSDKShareLinkContent 向 Facebook 4.x 添加标题

转载 作者:行者123 更新时间:2023-12-01 16:33:31 26 4
gpt4 key购买 nike

在 facebook SDK 3.x 中,可以使用共享对话框来添加标题。此功能在 4.x 中可用吗?标题现在是否应该成为共享指向的网页的一部分?

截至目前,显示的标题只是网络链接。

这是一些澄清问题的代码:

FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"www.google.com"];
content.contentDescription = @"2-4 sentences of description.";
content.contentTitle = @"Title";
content.contentCaption = ?

shareDialog.shareContent = content;
shareDialog.delegate = self;
[shareDialog show];

注意 - 显然没有 'contentCaption' setter ,但也许它是一个属性?不确定它是否还可用,但我想我会问。

最佳答案

我现在正在使用 Facebook sdk v4.10.1,这对我有用。

[content setValue:@{@"caption":@"?"} forKey:@"feedParameters"];

关于ios - 使用 FBSDKShareLinkContent 向 Facebook 4.x 添加标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30374440/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com