Ejemplo n.º 1
0
 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 + " ~]$ ");
 }
Ejemplo n.º 2
0
 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 + " ~]$ ");
 }