0

我在我们应用的注册成就中看到一些不完整的条目。

使用以下图形 api 调用查询成就

curl "https://graph.facebook.com/<appid>/achievements?access_token=<app_access_token>"

该调用返回如下结果:

{
"data": [{
    "id": "10150249221973207",
    "updated_time": "2011-09-08T07:42:46+0000",
    "context": {
        "display_order": 0
    }
}, {
    "id": "10150283711123407",
    "updated_time": "2011-07-22T11:54:35+0000",
    "context": {
        "display_order": 0
    }
}, {
    "url": "http:\/\/www.gunshine.net\/achievement\/info?achievementType=104857600",
    "type": "game.achievement",
    "title": "Meet The Challenge",
    "image": [{
        "url": "http:\/\/c459558.r58.cf2.rackcdn.com\/asset_0_10_9\/graphics\/achievement_icons\/achievement_unlocked_icon.png"
    }],
    "description": "Reach level 2",
    "site_name": "gunshine.net",
    "data": {
        "points": 10
    },
    "id": "10150273610694165",
    "updated_time": "2011-09-07T15:47:27+0000",
    "context": {
        "display_order": 0
    }
},
and so on....

如您所见,前 2 个条目不完整,我想删除它们,但根据https://developers.facebook.com/docs/achievements/上的成就文档,取消注册成就需要一个 URL被通过。

有没有办法在没有成就 URL 的情况下取消注册成就?

尝试使用常规图形 api 删除机制会导致错误消息:

curl -X DELETE "https://graph.facebook.com/<incomplete_achievement_id>?access_token=<app_access_token>"

结果是

{"error":{"type":"GraphMethodException","message":"Unsupported delete request."}}
4

1 回答 1

0

使用以下 curl -X DELETE "https://graph.facebook.com/AppId/achievements?access_token=...&achievement= full url"

于 2011-12-07T20:35:12.520 回答