我目前使用的代码实际上与Facebook's documentation中的示例相同,用于使用presentFeedDialogModallyWithSession发布到用户的墙上。在通过SDK发布到Facebook时向caption参数添加URL?
有没有办法让将URL与发送到帖子的“caption”参数相关联,还是只能将其显示为静态文本?
- (IBAction)publishButtonAction:(id)sender {
// Put together the dialog parameters
NSMutableDictionary *params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Facebook SDK for iOS", @"name",
//----------------------------------------------------
// can we add a URL for the caption parameter here?
@"Build great social apps and get more installs.", @"caption",
//----------------------------------------------------
@"The Facebook SDK for iOS makes it easier and faster to develop Facebook integrated iOS apps.", @"description",
@"https://developers.facebook.com/ios", @"link",
@"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png", @"picture",
nil];
// Invoke the dialog
[FBWebDialogs presentFeedDialogModallyWithSession:nil
parameters:params
handler:
^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
// handle the result...
}];
}
似乎文档没有指示的方式做到这一点,但只是想检查,看看也许我错过了一个细节,那是不是从文档显而易见的。
在此先感谢...