public fbcmd() { if (!Directory.Exists(FILE_PATH)) { Directory.CreateDirectory(FILE_PATH); } Console.Write("Email: "); Email = Console.ReadLine(); Console.Write("Password: "******"Authenticating..."); using (var login = new FBLogin()) { login.Email = Email; login.Password = Password; Application.Run(login); if (string.IsNullOrEmpty(login.Token)) { throw new Exception("Invalid Facebook Token"); } Token = login.Token; } Console.WriteLine("Success!"); Console.Write("[" + Email + " ~]$ "); }
public fbcmd() { if (!Directory.Exists(FILE_PATH)) Directory.CreateDirectory(FILE_PATH); Console.Write("Email: "); Email = Console.ReadLine(); Console.Write("Password: "******"Authenticating..."); using (var login = new FBLogin()) { login.Email = Email; login.Password = Password; Application.Run(login); if (string.IsNullOrEmpty(login.Token)) throw new Exception("Invalid Facebook Token"); Token = login.Token; } Console.WriteLine("Success!"); Console.Write("[" + Email + " ~]$ "); }