Closed

automatically logging into facebook using PHP cURL

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('[url removed, login to view]');

$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, '[url removed, login to view]');

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, '[url removed, login to view]');

curl_setopt($curl_handle, CURLOPT_POST, 1);

curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $qryString);

$page = curl_exec($curl_handle);

htmlOut("[url removed, login to view]");

htmlOut($page);

unset($logInPage,$qryString);

// get home page

curl_setopt($curl_handle, CURLOPT_POST, 0);

curl_setopt($curl_handle, CURLOPT_URL, '[url removed, login to view]');

$page = curl_exec($curl_handle);

__________________________________________________________

Skills: Facebook Marketing, PHP, Software Architecture

See more: facebook login script curl, logging facebook using php, facebook using php curl, log into, facebook find, login facebook curl, type cookies, sleep, rv, php facebook, nt, login php, logging facebook, windows log script, facebook email login, curl form value, curl input, script automatically facebook, php login facebook script, facebook login email, curl log php, facebook log page, php script echo, curl log, login facebook problem php

About the Employer:
( 50 reviews ) Dublin, Ireland

Project ID: #1149673

11 freelancers are bidding on average $30 for this job

SigmaVisual

We can help in your project, please check PMB and our ratings/reviews to get idea of our experience.

$30 USD in 1 day
(239 Reviews)
7.8
srinichal

I can fix the same

$30 USD in 4 days
(93 Reviews)
7.0
artanisz

Man, I cannot bid lower than $30 :)

$30 USD in 1 day
(7 Reviews)
6.4
Quick2ouch

Check demo i sent you

$30 USD in 0 days
(26 Reviews)
4.6
trongtd1988

Hi, i think i can do it for you. Please PMB for me

$30 USD in 0 days
(5 Reviews)
4.6
bappy33

Just two days work...

$30 USD in 2 days
(3 Reviews)
2.9
Acanguven

I am using curl for years. I can do everything with curl. Can post comments, can post status updates...

$30 USD in 0 days
(3 Reviews)
2.8
kARENAsia

Can be done quickly in 2 [url removed, login to view] you

$30 USD in 2 days
(0 Reviews)
0.0
smartguru007

i have done ur project and see the attached file pls check private msg

$30 USD in 1 day
(1 Review)
0.0
nirakan

I have already a working login script.

$30 USD in 1 day
(0 Reviews)
0.0
activerasel

I am interested on your project. I have confident to do the job. Please see PM & examples.

$30 USD in 10 days
(0 Reviews)
0.0