(#100) 尝试访问节点类型 (GamesIAPOrder) 上不存在的字段(消费)

(#100) Tried accessing nonexisting field (consume) on node type (GamesIAPOrder)

我正在尝试实施 Payments Lite

购买请求没有任何问题。

购买清单也一样。它returns:

[
  {
    "purchase_token": "###",
    "product_id": "###",
    "app_id": "###",
    "purchase_time": ###,
    "payment_id": "######",
    "consumed": false,
    "signed_request": "###",
    "payment_action_type": "charge"
  }
]

但是,如果我尝试使用 purchase_token 请求 returns:

消费此购买
{
  "error": {
    "message": "(#100) Tried accessing nonexisting field (consume) on node type (GamesIAPOrder)",
    "type": "OAuthException",
    "code": 100,
    "fbtrace_id": "CPjKLsTkf/G
"
  }
}

我正在使用此代码:

FB.API("/" + purchaseToken + "/consume", HttpMethod.GET, OnConsume, new Dictionary<string, string> {
     {"access_token", accessToken}
});

我该如何解决?

消费 purchase_token 的调用应该使用 HttpMethod.POST 而不是 HttpMethod.GET

https://developers.facebook.com/docs/games_payments/payments_lite#consuming