first you should check the permisson on facebook https://developers.facebook.com/docs/reference/login/user-friend-permissions/
string data = string.Empty;
Uri uri = new Uri("https://graph.facebook.com/me/photos?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