コード例 #1
0
        public static void Main(string[] args)
        {
            String serviceName = "facebook";

            IProfile service = InitService(serviceName);

            service.Login();
            String      name      = service.GetFullName();
            String      mail      = service.GetEmail();
            DateOfBirth dob       = service.GetDateOfBirth();
            String      dobString = dob.GetDay() + "." + dob.GetMonth() + "." + dob.GetYear();
            String      id        = service.GetIdentifier();

            Console.WriteLine("Logged in to " + args[0]);
            Console.WriteLine("logged in as " + name + " (email: " + mail + "), born " + dobString);
            Console.WriteLine("unique identifier (can be used for social login): " + id);
        }