I need to login to facebook, but my code doesnt work:

#include <windows.h>
#include <wininet.h>
#include <string>
#include <iostream.h>

using namespace std;

void main()
{

string m_strURL;

HINTERNET hSession, hDownload, hRequest;

hSession = InternetOpen("MFFS", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);

hDownload = InternetConnect(hSession, "login.facebook.com", INTERNET_DEFAULT_HTTPS_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0);

hRequest = HttpOpenRequest(hDownload, "POST", "/login.php?login_attempt=1", NULL, NULL, NULL, INTERNET_FLAG_SECURE, 0);

HttpSendRequest(hRequest, NULL, 0, "[email protected]&pass=123123123", 401);

if ( hRequest )
{
CHAR buffer[1024];
DWORD dwRead;
while ( InternetReadFile( hRequest, buffer, 1023, &dwRead ) )
{
if ( dwRead == 0 )
break;

buffer[dwRead] = 0;
m_strURL += buffer;
cout << buffer << endl;
}
}
}

Any idea whats wrong?
Thanks!