我正在尝试使用以下代码和user_friends,read_friendlists
权限获取Facebook用户的朋友列表,但它确实会返回零朋友。
var accesstoken = result.AccessToken;
//MessageBox.Show("token = " + accesstoken);
var client = new FacebookClient(accesstoken);
dynamic myInfo = client.Get("/me/friends");
StringBuilder buffer = new StringBuilder();
buffer.AppendLine();
foreach (dynamic friend in myInfo.data)
{
buffer.Append(friend.id);
buffer.Append(" = ");
buffer.Append(friend.name);
buffer.AppendLine();
}
MessageBox.Show("friends = " + buffer.ToString());
我该如何解决这个问题?