how to get profile picture of friends from facebook

Thats all I have tried
void APICallback(FBResult result)
{
Debug.Log(“APICallback”);
if (result.Error != null)
{
Debug.LogError(result.Error);
FB.API(“/me?fields=id,first_name,friends.limit(100).fields(first_name,picture)”, Facebook.HttpMethod.GET, APICallback);
return;
}
profile = Util.DeserializeJSONProfile(result.Text);
Name = profile[“first_name”];
friends = Util.DeserializeJSONFriends(result.Text);
Debug.Log (Name);
foreach (object friend in friends) {
Dictionary<string, object> friendData = friend as Dictionary<string, object>;
foreach(KeyValuePair<string, object> keyval in friendData)
{
Debug.Log(keyval.Key + " : " + keyval.Value.ToString());
}
Dictionary<string, object> pictureData = Facebook.MiniJSON.Json.Deserialize(friendData[“picture”].ToString()) as Dictionary<string, object>;
Dictionary<string, object> pic = pictureData[“data”] as Dictionary<string, object>;
Debug.Log(pic[“url”].ToString());
}
}

It Gives me the friends name and id, but i need picture as well, the above query works fine on fb api graph explorer and gives the url of picture, but on unity it is not working. Please help if somebody can. Thanks

I think this is a good way to solve your problem:

IEnumerator UserImage()
	{
		WWW url = new WWW("https" + "://graph.facebook.com/" + FB.UserId.ToString() + "/picture?type=large"); 
		Texture2D textFb2 = new Texture2D(128, 128, TextureFormat.DXT1, false); //TextureFormat must be DXT5
		yield return url;
		url.LoadImageIntoTexture(textFb2);
		UserImg = textFb2;
	}

For any one that still needs it! works for me.

                FB.API("https" + "://graph.facebook.com/" + user["id"].ToString() + "/picture?type=large", HttpMethod.GET, delegate (IGraphResult result)
                {
                     fImage.overrideSprite = Sprite.Create(result.Texture, new Rect(0, 0, 200 , 125), new Vector2(0.5f, 0.5f), 100);
                });