I am trying to access information on facebook via curl that can only be accessed when logged in. I am assuming this means I need to pass a cookie through curl, correct? So far the only information I can find about using cookies with curl is that CURLOPT_cookieJAR is for storing cookies and CURLOPT_cookieFILE is for sending back cookies... does that mean I have to create a file with the cookie and put it on my server, and then call that file with CURLOPT_cookieFILE, like so?:
If so, how do I know what the cookie contents are?Code:$handle = curl_init(); curl_setopt($handle, CURLOPT_COOKIEFILE, "cookiefile");
Also, I believe facebook uses sessions... how do I include the session information in the cookie so that it will work?





Bookmarks