string data = string.Empty;
Uri uri = new Uri("https://graph.facebook.com/me?access_token="
+ token);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.Method
= "GET";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream stream = (Stream)response.GetResponseStream();
StreamReader reader = new
StreamReader(stream);
data
= reader.ReadToEnd();
No comments:
Post a Comment