<?php
  $email="";
  $pass="";
  $cookie_file_path = "cookie.txt"; 
  $fp = fopen($cookie_file_path,'wb');    
  fclose($fp);
  $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
  $reffer = "http://www.facebook.com/login.php";
		  
		  
		   $ch = curl_init();
		  curl_setopt($ch, CURLOPT_URL,"https://login.facebook.com/login.php");
		  curl_setopt($ch, CURLOPT_USERAGENT, $agent);
		  curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
		  curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
		  curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com/login.php");
		  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		  curl_setopt($ch, CURLOPT_HEADER, 1);
		  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		  curl_setopt($ch, CURLOPT_POSTFIELDS, "charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&version=1.0&return_session=0&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=".$email."&pass=".$pass."");
			$html = curl_exec($ch);
			echo $html;
?>
Merhaba arkadaşlar cURL ile facebook a bağlanıyorum fakat sadece anasayfa diğer sayfalarada bağlı kalması için ne yapmam gerekiyor...
Birde localde çalışıyor fakat bedava hostingde çalışmıyor desteklemediğinden mi yoksa kodlardan kaynaklanan birşeymi eğer desteklememesinden ise destekleyen bi hosting de söylermisiniz...

İyi günler