我在应用的注册成就中看到了一些不完整的条目。
使用以下图表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。
有没有办法在没有成就网址的情况下取消注册成就?
尝试使用常规图形api删除机制会导致错误消息:
curl -X DELETE "https://graph.facebook.com/<incomplete_achievement_id>?access_token=<app_access_token>"
结果
{"error":{"type":"GraphMethodException","message":"Unsupported delete request."}}
答案 0 :(得分:0)
使用以下内容 curl -X DELETE“https://graph.facebook.com/AppId/achievements?access_token=...&achievement= full url”