通过 Graph Api C# 更改图片标题

发布于 2024-10-12 02:12:57 字数 91 浏览 1 评论 0原文

我需要知道是否可以更改在 Facebook 中上传的图片的标题。 我可以毫无问题地上传,但现在我想使用 facebook graph api 更改标题。是否可以? 谢谢

I need to know if it's possible to change the caption of a picture uploaded in facebook.
I could upload without trouble, but now I want to change the caption using the facebook graph api. Is it possible?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

陪你搞怪i 2024-10-19 02:12:57

看起来 name 字段就是您想要发布的内容,以便更改标题:https://developers.facebook.com/docs/reference/api/photo/

但是,他们不支持写入。这里列出了您可以编写的内容: https://developers.facebook.com/docs /reference/api/#publishing

可以上传带有新标题的照片,但看起来好像用户必须批准将照片添加到他的相册中,我不确定这部分是可自动化的。

此外,Facebook 还阻止了通过 Graph API 删除照片的功能;因此,即使存在上述审批障碍,您也无法删除带有旧标题的照片并上传带有新标题的照片,以便有效地更改标题。发送正确的 DELETE 命令时的错误消息为:{"error":{"type":"OAuthException","message":"(#3) 应用程序无法进行此 API 调用。" }}

所以简短的回答是“从 2011 年 6 月 11 日起这显然是不可能的”。

It looks like the name field is what you want to POST to, in order to change the caption: https://developers.facebook.com/docs/reference/api/photo/

However, they don't support writing to it. The things you can write are listed here: https://developers.facebook.com/docs/reference/api/#publishing

It is possible to upload the photo with a new caption, but it looks as if the user has to approve the addition of a photo to his album, and I'm not sure that part is automatable.

Also, Facebook has blocked the ability to delete photos via the Graph API; so even with the approval barrier above you could not delete the photo with the old caption and upload it with a new caption, in order to effectively change the caption. The error message on sending the correct DELETE command is: {"error":{"type":"OAuthException","message":"(#3) Application does not have the capability to make this API call."}}

So the short answer is "it is apparently not possible as of June 11 2011".

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