我正在使用 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 网站上我看不到描述。搜索了很多,但找不到任何方法,所以请任何人帮助我。提前致谢