我正在使用FBDialogs在Facebook上分享我在哪里分享图片,名称和描述。 以下是我用于分享的代码: -
[FBDialogs presentShareDialogWithLink:params.link
name:params.name
caption:nil
description:[NSString stringWithFormat:@"OMG I’m in LOVE with a puppy named %@.Come and say hi %@",sPuppyName , ITUNES_STORE_LINK]
picture:params.picture
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);
NSLog(@"result obtained %@",[results valueForKey:@"completionGesture"]);
if([[results valueForKey:@"completionGesture"] isEqualToString:@"cancel"]){
[[NSNotificationCenter defaultCenter] postNotificationName:@"facebookDidSharingCancel" object:self userInfo:nil];
}
else if([[results valueForKey:@"completionGesture"] isEqualToString:@"post"])
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"facebookDidLogin" object:self userInfo:nil];
}
}
}];
我可以在共享时看到共享对话框的描述,但在Facebook网站上我无法看到描述。 搜索了很多,但无法找到任何方式所以请任何人帮助我。 提前致谢