Project Description:
Im having a problem with the following script which was used to log into facebook. it worked perfectly up to saturday 30th of July 2011
I need someone to help me get this script working..
This project is worth less than 30$ so who ever can do it cheapest will get it..
I will also have lots of other work for the successful provider.
_________________________________________________________________________
$logInPage = file_get_html('https://login.facebook.com/login.php');
$qryString = '';
foreach($logInPage->find('form input[type=hidden]') as $hidden) {
$qryString = $qryString.'&'.$hidden->name.'='.urlencode($hidden->value);
}
$qryString = 'email='.urlencode($email).'&pass='.urlencode($pass).'&login=Login'.$qryString;
curl_setopt($curl_handle, CURLOPT_HEADER, 0);
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_handle, CURLOPT_CAPATH, SSL_CA_FILE);
curl_setopt($curl_handle, CURLOPT_COOKIEJAR, COOKIE_FILE);
curl_setopt($curl_handle, CURLOPT_COOKIEFILE, COOKIE_FILE);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
//login to initialize cookies
curl_setopt($curl_handle, CURLOPT_URL, 'https://login.facebook.com/login.php');
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $qryString);
$page = curl_exec($curl_handle);
//echo $qryString;
unset($page);
sleep(5);
curl_setopt($curl_handle, CURLOPT_URL, 'https://login.facebook.com/login.php');
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $qryString);
$page = curl_exec($curl_handle);
htmlOut("https://login.facebook.com/login.php");
htmlOut($page);
unset($logInPage,$qryString);
// get home page
curl_setopt($curl_handle, CURLOPT_POST, 0);
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.facebook.com/home.php');
$page = curl_exec($curl_handle);
__________________________________________________________