iOS Facebook SDK本机共享
我已通过本机Facebook应用程序(如果已安装)整合了Facebook上的链接共享,其中包含描述、标题等,代码如下:iOS Facebook SDK本机共享,ios,facebook,sdk,Ios,Facebook,Sdk,我已通过本机Facebook应用程序(如果已安装)整合了Facebook上的链接共享,其中包含描述、标题等,代码如下: FBLinkShareParams *params = [[FBLinkShareParams alloc] initWithLink:[NSURL URLWithString:@"https://abcde.com"] name:@"d
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);
}
}];
当这个方法运行,并且安装了本机facebook应用程序时,我可以选择共享一篇包含标题、链接和描述的文章。当我点击共享并在FB上查看时,它似乎只有链接
有人能提出一个可能的解决方案吗?很可能是因为