Change picture caption thru Graph Api C# Facebook

我的未来我决定 提交于 2019-12-09 18:31:36

问题


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


回答1:


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".



来源:https://stackoverflow.com/questions/4685198/change-picture-caption-thru-graph-api-c-sharp-facebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!