删除测试Facebook用户 - 打开图表仍然报告用户

时间:2011-12-24 17:00:17

标签: facebook facebook-test-users

我看到每个应用程序限制了500个测试用户,所以我想我会写一些代码来定期删除它们。 (我根据自动化测试创建了一个新的测试用户)

我发现即使删除了测试用户,facebook仍然会报告测试用户的存在。样品请求/响应如下。我删错了吗?或者,是否无法真正删除测试用户并避免达到500用户上限?

这是我查询现有用户,删除一个并再次查询的跟踪。同一个用户仍然在结果中:

Request: GET https://graph.facebook.com/220266841382535/accounts/test-users?access_token=<removed>
Response:
{
  "data": [
    {
      "id": "100003291443080",
      "access_token": "<removed>",
      "login_url": "https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=<removed>"
    },
    ...
  ],
  "paging": {
    "next": "https:\/\/graph.facebook.com\/220266841382535\/accounts\/test-users?access_token=<removed>&limit=50&offset=50&__after_id=100003245483203"
  }
}

Request: DELETE https://graph.facebook.com/100003291443080?access_token=<removed>
Response:
true


Request: GET https://graph.facebook.com/220266841382535/accounts/test-users?access_token=<removed>
Response:
{
  "data": [
    {
      "id": "100003291443080",
      "access_token": "<removed>",
      "login_url": "https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=<removed>"
    },
    ....
  ],
  "paging": {
    "next": "https:\/\/graph.facebook.com\/220266841382535\/accounts\/test-users?access_token=<removed>&limit=50&offset=50&__after_id=100003245483203"
  }
}

0 个答案:

没有答案