I am attempting to login to Facebook using curl, but everything I have tried has ended up in Facebook saying, \"Cookies are not enabled on your browser. Please enable cookie
This may help:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
Check this answer:
Post to a Facebook user's wall with cURL PHP