示例#1
0
        private void btnFacebookLogin_Click(object sender, EventArgs e)
        {
            var fbLoginDialog = new FB_LoginDialog(AppId, ExtendedPermissions);

            fbLoginDialog.ShowDialog();

            DisplayAppropriateMessage(fbLoginDialog.FacebookOAuthResult);
        }
示例#2
0
        public string getMail()
        {
            var fbLoginDialog = new FB_LoginDialog(AppId, ExtendedPermissions);

            fbLoginDialog.ShowDialog();

            DisplayAppropriateMessage(fbLoginDialog.FacebookOAuthResult);

            try
            {
                var result = _fb.Get("me", new { fields = new[] { "first_name", "last_name", "name", "gender", "id", "age_range" } });


                var     cl      = _fb;
                dynamic result1 = _fb.Get("me?fields=id,name,email");
                return(result1.email);
            }
            catch (Exception)
            {
                return("there was a problem");
            }
        }