[英]iOS Facebook SDK Native Sharing
I have integrated Facebook Sharing of a link with a description, caption, etc via the Native Facebook App (if it is installed) using the code: 我通过使用以下代码的本机Facebook应用程序(如果已安装),将带有描述,标题等的链接的Facebook共享集成在一起:
FBLinkShareParams *params = [[FBLinkShareParams alloc] initWithLink:[NSURL URLWithString:@"https://abcde.com"]
name:@"demo"
caption:@"demo"
description:@"demo"
picture:nil];
//Present share dialog
[FBDialogs presentShareDialogWithParams:params clientState:nil handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
if(error) {
// An error occurred, we need to handle the error
// See: https://developers.facebook.com/docs/ios/errors
NSLog(@"Error publishing story: %@", error.description);
} else {
// Success
NSLog(@"result %@", results);
}
}];
When this method runs, and the native facebook app is installed, I get an option to share a post that has caption, link and description. 当此方法运行并且安装了本地facebook应用程序时,我可以选择共享包含标题,链接和描述的帖子。 When I click share and I go on FB to check it, it appears to only have the link?
当我单击共享并在FB上进行检查时,似乎只有链接?
Can someone suggest a possible fix? 有人可以提出可能的解决方法吗?
最有可能是由于最新的Facebook共享政策2.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.