Guys, I need to learn how to log in to my microsoft account or maybe facebook acount through cpp. First of all I already know how to open a file but I'm not sure if this is the right one, for example:
system("cow.html");
or maybe you recommend another way? Please tell me.
Second, please tell me how to write my email then password into the bars through c++ .
It doesn't matter if I have to input my data through the console or directly in the code. I just need to work. facebook.com or outlook.com , it doesn't matter, please give me an example, show me the logic...
There is no standard way to do it in c++ without networking or external libraries. You may want to take a look at the network handling libcurl, i believe they have a web request system that works well. Also, some websites also have SDK systems that allow you to interface with there systems, as google does. Also, you are working with the system command that is no different than using the command prompt and putting in "cow.html". If you really want to make a true web request use libcurl or other systems alike to it.
What do you actually want to accomplish? Logging in to a website is not difficult but I guess that's only the beginning. Have a look at this thread where I wrote a little app that automatically can login here.
I want to only know how to log in to a site, to facebook in particular.
Well actually I also wanna know how to log out after that. It doesn't matter if I put the email and the password in the code or through the console.
I thought this is going to be easy but...anyway. I saw that you said to him that you're going to PM him another code. Can you also send it to me too, maybe that would be helpful?
Or if you have free time, I would really appreciate it if you could send me a CODE of what I have really asked for.
Either way thanks a lot for trying to help me ;)
@Thomas it's always better to have solutions posted publicly to the thread. That way, it can act as a resource for anyone else who comes along looking for a similar solution.
I will post the code when it is finished. It's much easier if I can send him a link on my dropbox account and he can download and run the whole project. The best solution would be if we could upload zip files here but I am not sure if this ever will happen.