-1
var client = new Facebook.FacebookClient(this.fbLoginButton.CurrentSession.AccessToken); 
dynamic result = await client.GetTaskAsync("me"); 
var currentUser = new Facebook.Client.GraphUser(result); 
this.userInfo.Text = this.BuildUserInfoDisplay(currentUser); 



private string BuildUserInfoDisplay(Facebook.Client.GraphUser user) 
{ 
    System.Diagnostics.Debug.WriteLine("In user info display"); 
    var userInfo = new System.IO.StringWriter(); 
    userInfo.WriteLine(string.Format("Name: {0}", user.Name)); 
} 

有一个人请告诉我如何在Windows的Windows电话:使用Facebook的图形API

回答

0

您需要登录时要求email许可使用Facebook的图形API来获取电子邮件ID的用户获取用户的电子邮件ID 。见

+0

指定的电子邮件权限,但如何获得? Shanky

+0

因为我不知道C#SDK,我想它是'user.email'。在https://developers.facebook.com/docs/graph-api/reference/user#Reading查看SDK文档和FB文档 – Tobi