0

我正在尝试进行 facebook webhook 设置

但低于错误

无法验证 URL。响应与挑战不匹配,预期值="1752482085",收到="{"version":{"major":..."

你能建议我该怎么做吗?

C#代码:

        [HttpGet]
        public HttpResponseMessage Get()
        {
            string challenge = HttpContext.Request.Query["hub.challenge"].ToString();
            var response = new HttpResponseMessage(HttpStatusCode.OK)
            {
                Content = new StringContent(challenge)
            };

            response.Content.Headers.ContentType = new MediaTypeHeaderValue("text/plain");
            return response;
        }
4

0 回答 0