在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'设置器,但也许它是属性?不知道它是否已经可用了,但我想会问。
答案 0 :(得分:0)
我现在正在使用Facebook sdk v4.10.1,这对我有用。
[content setValue:@{@"caption":@"?"} forKey:@"feedParameters"];