通过 Graph Api C# 更改图片标题
我需要知道是否可以更改在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来
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".