Nearby, as I can say, the FacebookGraph object, which is in the examples from DotNetOpenAuth, does not support changing the fields you receive. However, since the WebRequest that it requests returns a JSON string, you can parse it yourself (or use a different JSON parser). This is exactly what I did using NewtonSoft.Json.dll :
//as part of the uri for the webrequest, include all the fields you want to use var request = WebRequest.Create("https://graph.facebook.com/me?fields=email,name&access_token=" + Uri.EscapeDataString(authorization.AccessToken)); using (var response = request.GetResponse()) { using (var responseStream = response.GetResponseStream()) { System.IO.StreamReader streamReader = new System.IO.StreamReader(responseStream, true); string MyStr = streamReader.ReadToEnd(); JObject userInfo = JObject.Parse(MyStr); //now you can access elements via: // (string)userInfo["name"], userInfo["email"], userInfo["id"], etc. } }
Note that you indicate which fields you want to send back as part of the WebRequest URI. The fields that are available can be found at https://developers.facebook.com/docs/reference/api/user/
source share