2

アプリケーションごとに 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"
  }
}
4

0 に答える 0