public static bool Login() { _accessToken = null; FacebookLoginDialog dialog = new FacebookLoginDialog(AppId, ExtendedPermissions); dialog.ShowDialog(); if (dialog.FacebookOAuthResult != null) { if (dialog.FacebookOAuthResult.IsSuccess) _accessToken = dialog.FacebookOAuthResult.AccessToken; else MessageBox.Show(dialog.FacebookOAuthResult.ErrorDescription); } return dialog.FacebookOAuthResult != null && dialog.FacebookOAuthResult.IsSuccess; }
public static bool Login() { _accessToken = null; FacebookLoginDialog dialog = new FacebookLoginDialog(AppId, ExtendedPermissions); dialog.ShowDialog(); if (dialog.FacebookOAuthResult != null) { if (dialog.FacebookOAuthResult.IsSuccess) { _accessToken = dialog.FacebookOAuthResult.AccessToken; } else { MessageBox.Show(dialog.FacebookOAuthResult.ErrorDescription); } } return(dialog.FacebookOAuthResult != null && dialog.FacebookOAuthResult.IsSuccess); }