Iphone 在Facebook上发布链接不显示链接拇指图像?
我正在使用facebook sdk 3.0 安装起来很容易,但我发现了一些奇怪的东西 我无法显示链接的缩略图 检查我的密码,它很短Iphone 在Facebook上发布链接不显示链接拇指图像?,iphone,ios,facebook,url,thumbnails,Iphone,Ios,Facebook,Url,Thumbnails,我正在使用facebook sdk 3.0 安装起来很容易,但我发现了一些奇怪的东西 我无法显示链接的缩略图 检查我的密码,它很短 NSString *message = [NSString stringWithFormat:@"%@ is reading this news : \n %@", self.loggedInUser.first_name,[[dataList objectAtIndex:index] objectF
NSString *message = [NSString stringWithFormat:@"%@ is reading this news : \n %@",
self.loggedInUser.first_name,[[dataList objectAtIndex:index] objectForKey:@"NewsURL"]];
[FBRequestConnection startForPostStatusUpdate:message completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
// [self showAlert:message result:result error:error];
}];
就这样~
但它只在墙上贴了一个链接,没有图片
我尝试发布相同的url来更新状态,它可以显示拇指图像
下面是示例URL
当我使用Facebook api时,我会错过什么
任何回答都会有帮助
谢谢
韦伯
*****************编辑***********************
它需要使用FBRequestConnection startWithGraphPath
所以,这是我的最终解决方案
NSMutableDictionary *postParams = [[NSMutableDictionary alloc] initWithObjectsAndKeys:newsURL, @"link",
newsTitle,@"name",nil];
[FBRequestConnection startWithGraphPath:@"me/feed"
parameters:postParams
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,id result,NSError *error) {
}];
[postParams release];
也请参考此您正在将URL以纯文本形式放入
消息
参数中
试着把它放到
link
参数中。在我的例子中,我可以使用下面的代码片段在Facebook上发布一个视频URL作为链接
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
g_videoURL, @"link",
VideoDescriptionHeading, @"message",
VideoThumbURL, @"picture",
VideoTitle, @"name",
VideoDescription, @"description",
nil];
[[appDelegate facebook] requestWithGraphPath:@"me/feed"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
你能发布一些示例代码吗???不知道如何使用链接参数。。。