从 Graph API 中删除照片标签

编程入门 行业动态 更新时间:2024-10-21 05:41:57
本文介绍了从 Graph API 中删除照片标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试创建一个应用程序来帮助用户删除不需要的标签.我听到很多抱怨 FB 不再允许公众访问删除图片的权限......标签也是如此吗?

I am trying to create an app that assists users in removing unwanted tags. I've heard a lot of complaining that FB no longer allows public access to the deletion of pictures... Is the same thing going on for tags?

我得到 {"error":{"type":"OAuthException","message":"(#3) 应用程序没有能力进行这个 API 调用."}}当我尝试通过

I get {"error":{"type":"OAuthException","message":"(#3) Application does not have the capability to make this API call."}} when I try to do the deletion via

https://graph.facebook/some_photo_id/tags/user_id?access_token=a_valid_access_token&callback=whatever&method=delete&pretty=0&sdk=joey

如果我尝试 AJAX DELETE 请求或使用 FB.api('/pid/tags/uid', 'delete', function(){})

I get the same error if I try an AJAX DELETE request or use FB.api('/pid/tags/uid', 'delete', function(){})

我已启用权限:user_photos、friends_photos、publish_stream、publish_actions、user_status.我是否忘记了某个权限?

I have enabled the permissions: user_photos, friends_photos, publish_stream, publish_actions, user_status. Did I forget a certain permission?

我非常感谢您在此问题上的帮助.

I would really appreciate assistance with this issue.

推荐答案

我已经能够上传照片,并在 C# 上添加一些随机标签,但似乎无法删除它们;这很奇怪,因为例如,如果您在 Windows 手机中使用集成应用程序,您可以毫无问题地添加和删除任何您想要的标签,唯一的限制是显然您不能删除不是您创建的标签,只有这个 wpandroid 设备中的集成功能和 facebook 的应用程序能够做到这一点,但您会发现,在带有 facebook 官方应用程序的 android 设备中,无法删除您为朋友创建的标签,只能删除您的标签.

I've been able to upload a photo, and add some random tags to it on C#, but it seems to be impossible to remove them; it is weird because if you use the integrated app in a windows phone for example you can add and remove any tag you want without problems, the only restriction is that obviously you can't remove tags that you didn't create, only this wp integrated feature and the facebook's app in the android devices are capable of that but you'll find that in android devices with the facebook official app it is not posible to delete tags that you create of your friends, just yours.

如果您愿意,可以尝试此处,如果您指定有效的照片 ID以及您仍然获得的有效 Facebook 用户 ID:

If you want you can give it a try here where if you specify a valid photo id and a valid facebook user id you still get:

"error": {    
"message": "(#3) Application does not have the capability to make this API call.",
     "type": "OAuthException",
     "code": 3  
}

事实上,我在另一个论坛上读到,应用程序只能删除他们创建的标签和照片,仅此而已,但事实并非如此,我使用我的应用程序上传并标记了一张照片,但是当我尝试时删除标签这是不可能的.

In fact I read in another forum that the applications where only able to delete tags and photos that they create and no more than that, but that was not the case, I uploaded and tagged a photo with my app but when I tried to delete the tags It was not posssible.

这篇关于从 Graph API 中删除照片标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-18 07:15:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/932742.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   照片   Graph   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!