I have read the following post Post 1 and followed ak7's answer to get the url of fb image, but when i browse to the url, it shows a photo with grey background and a question mark. Then i tried to follow the Second post Mike Troinfo's answer and added picture as a parameter to query string, but the info variable doesn't have any parameter corresponding to image. Kindly help me in figuring out a solution to get Users DP from facebook and store it in database
var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
WebResponse response = null;
string pictureUrl = string.Empty;
try
{
WebRequest request = WebRequest.Create(string.Format("https://graph.facebook.com/{0}/picture?type=large&redirect", loginInfo.email));
response = request.GetResponse();
pictureUrl = response.ResponseUri.ToString();
}