iphone:图表api在流中不允许获取FBCDN图像

时间:2011-05-04 05:13:43

标签: iphone facebook-graph-api

我正在努力实现这个目标

1)在Facebook上传照片 2)从响应字符串中收集此上传图片的网址 2)然后使用上面的照片的链接创建一个帖子和图片属性,但事情似乎不起作用

在我尝试发布Feed后,

在流中获取“FBCDN图像”。

ASIFormDataRequest *newRequest = [ASIFormDataRequest requestWithURL:url];
[newRequest setPostValue:[comments text] forKey:@"message"];

[newRequest setPostValue:[NSString stringWithFormat:@"%@", [responseJSON objectForKey:@"picture"]] forKey:@"picture"];

[newRequest setPostValue:@"nem appears here??" forKey:@"name"];
[newRequest setPostValue:@"caption appears here??" forKey:@"caption"];
[newRequest setPostValue:@"description appears here??" forKey:@"description"];
[newRequest setPostValue:@"http://google.com" forKey:@"link"];

[newRequest setPostValue:_accessToken forKey:@"access_token"];
[newRequest setDidFinishSelector:@selector(postToWallFinished:)];

[newRequest setDelegate:self];
[newRequest startAsynchronous];

请帮我解决这个问题

1 个答案:

答案 0 :(得分:4)

不是使用“图片”标记发送URL,而是仅发送已在请求委托调用中返回给您的上传图片的ID,然后使用“object_attachment”标记将其发回。

在此处阅读更多内容:Attaching Existing Facebook Photos to Wall Posts