I use the some WinForm client sample from Problems when migrating from Facebook SDK v5.4 to alpha v6
to see how I can login into Facebook.
My question: Is it possible to login into Facebook without ANY dialog?
private void btnLogin_Click(object sender, EventArgs e)
{
// open the Facebook Login Dialog and ask for user permissions.
var fbLoginDlg = new FacebookLoginDialog(AppId, ExtendedPermissions);
fbLoginDlg.ShowDialog();
// The user has taken action, either allowed/denied or cancelled the authorization,
// which can be known by looking at the dialogs FacebookOAuthResult property.
// Depending on the result take appropriate actions.
TakeLoggedInAction(fbLoginDlg.FacebookOAuthResult);
}
you are not allowed to store user login/password in the database and use it for “automatic” login – as per Facebook policy:
therefore the answer is – NO, you cannot do that, and you are not allowed to do that.