-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
指定的電子郵件權限,但如何獲得? –
Shanky
因爲我不知道C#SDK,我想它是'user.email'。在https://developers.facebook.com/docs/graph-api/reference/user#Reading查看SDK文檔和FB文檔 – Tobi