In the code , i m getting this error :
'System.Collections.Generic.KeyValuePair<string,object>' does not contain a definition for 'detail'
here is the code :
dynamic friendList = fb.Get("me/friends?fields=id,first_name,last_name,birthday,location,locale,age_range");
JsonObject mefriends = friendList;
foreach (dynamic friend in friendList)
{
foreach (dynamic detail in friend.detail ?? new[] {new{ id = new { id = string.Empty } }})
{
Response.Write("id: " + detail.id);
}
}
Please tell me why i m getting this error