iphone:graph api 在流中不允许获取 FBCDN 图像
我正在努力实现这一目标
1)在 Facebook 上上传照片 2)从响应字符串中收集上传图片的url 2)然后使用上面照片的链接创建一个帖子并为图片属性创建一个帖子,但事情不起作用,
在我尝试发布提要后,似乎出现“流中不允许使用 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];
请帮我解决这个问题
I am trying to do achieve this
1) Upload a photo on facebook
2) collect the url of this uploaded picture from response string
2) then create a post and for the picture property using the link of above photo but things are not working it seem
getting "FBCDN image is not allowed in stream" after I try to post the feed.
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];
please help me to solve this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用“图片”标签发送 URL,而是仅发送在请求委托调用中返回给您的上传图片的 ID,然后使用“object_attachment”标签将其发送回来。
在此处阅读更多信息:将现有 Facebook 照片附加到墙上帖子
Instead of sending the URL in with a "picture" tag, send just the ID of the uploaded picture, which was returned to you in the request delegate call, and send that back with a tag of "object_attachment".
Read more here: Attaching Existing Facebook Photos to Wall Posts