在 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/