从 Graph API 中删除照片标签 [英] Delete photo tag from Graph API

查看:23
本文介绍了从 Graph API 中删除照片标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个应用程序来帮助用户删除不需要的标签.我听到很多抱怨 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.com/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆