给定facebook id的多个用户信息

| 我需要在一个呼叫中从Facebook上获取多个用户,并发送所需用户的ID,我不知道每次需要获取多少用户,因为它是动态的。 搜索了多个地方,并设法找到了一些解决方案,但是似乎没有一个可行或有效的。 一个是foreach,使用facebook c#sdk get方法...确实没有效率。 我设法找到的最接近的是以下内容,其中s是由逗号分隔的id的字符串:
        var requestString = string.Format(\"https://graph.facebook.com?ids={0}\", s);
        var request = (HttpWebRequest)WebRequest.Create(requestString);
        request.ContentType = \"GET\";
        try
        {
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            if (response != null)
            {
                if (response.StatusCode == HttpStatusCode.OK)
                {
                    Stream stream = response.GetResponseStream();
                    using (StreamReader reader = new StreamReader(stream))
                    {
                        var html = reader.ReadToEnd();
                    }
                }
                response.Close();
            }
        }
        catch { }
这以某种可怕的html格式返回我需要的内容。 是否有更好的方法(使用批处理请求或使用简单的get方法)? 谢谢     
已邀请:
我将通过逗号分隔的ID进行批处理请求。至少然后您会看到一个预定义的json结构,它们将向您发送。     

要回复问题请先登录注册