first you should check the permisson on facebook https://developers.facebook.com/docs/reference/login/user-friend-permissions/
string query= "select
aid,name,cover_pid,created,modified,description from album where
owner=me()";
string data = string.Empty;
Uri uri = new Uri("https://graph.facebook.com
fql?q=" + query + "&access_token="
+ accessToken);
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