automatically logging into facebook using PHP cURL
$30-250 USD
Zamknięte
Opublikowano ponad 12 lat temu
$30-250 USD
Płatne przy odbiorze
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('[login to view URL]');
$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, '[login to view URL]');
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, '[login to view URL]');
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $qryString);
$page = curl_exec($curl_handle);
htmlOut("[login to view URL]");
htmlOut($page);
unset($logInPage,$qryString);
// get home page
curl_setopt($curl_handle, CURLOPT_POST, 0);
curl_setopt($curl_handle, CURLOPT_URL, '[login to view URL]');
$page = curl_exec($curl_handle);
__________________________________________________________