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

发布于 2024-11-05 06:14:08 字数 919 浏览 0 评论 0原文

我正在努力实现这一目标

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩心不撩汉 2024-11-12 06:14:08

不要使用“图片”标签发送 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文