Login Into Facebook Curl PHP

Hello i want to login into Facebook using URL and change curl header IP to $_SERVER[‘REMOTE_ADDR’]. but IP not change please tell me how to fix this.

 $ipku = $_SERVER['REMOTE_ADDR'];
  $ip = array("REMOTE_ADDR: $ipku", "HTTP_X_FORWARDED_FOR: $ipku");

$ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/login.php');

 curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($em).'&pass='.urlencode($pa).'&login=Login');

 curl_setopt($ch, CURLOPT_POST, 1);

 curl_setopt($ch, CURLOPT_HEADER, 0);

 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);


 curl_setopt($ch, CURLOPT_COOKIEJAR,$cookie);

 curl_setopt($ch, CURLOPT_COOKIEFILE,$cookie);

 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

 curl_setopt($ch, CURLOPT_USERAGENT,'Opera/9.80 (Series 60; Opera Mini/6.5.27309/34.1445; U; en) Presto/2.8.119 Version/11.10');

 curl_setopt($ch, CURLOPT_REFERER,

    $body = curl_exec($ch);

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.