Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try using cURL in PHP:</p> <p><a href="http://php.net/manual/en/book.curl.php" rel="nofollow">http://php.net/manual/en/book.curl.php</a></p> <p>There are wrappers for this, like:</p> <p><a href="http://semlabs.co.uk/journal/object-oriented-curl-class-with-multi-threading" rel="nofollow">http://semlabs.co.uk/journal/object-oriented-curl-class-with-multi-threading</a></p> <p>Use options such as:</p> <h2>EDIT: More specific, not tested</h2> <p>Download the class from:</p> <p><a href="http://semlabs.co.uk/journal/object-oriented-curl-class-with-multi-threading" rel="nofollow">http://semlabs.co.uk/journal/object-oriented-curl-class-with-multi-threading</a></p> <pre><code>require_once( 'CURL.php' ); //Change this to whatever that class is called in the above $curl = new CURL(); $curl-&gt;retry = 2; $opts = array( CURLOPT_USERAGENT =&gt; 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20091020 Linux Mint/8 (Helena) Firefox/3.5.3', CURLOPT_COOKIEFILE =&gt; 'fb.tmp', CURLOPT_COOKIEJAR =&gt; 'fb.tmp', CURLOPT_FOLLOWLOCATION =&gt; 1, CURLOPT_RETURNTRANSFER =&gt; 1, CURLOPT_SSL_VERIFYHOST =&gt; 0, CURLOPT_SSL_VERIFYPEER =&gt; 0, CURLOPT_TIMEOUT =&gt; 20 ); $post_data = array( ); //put your login POST data here $opts[CURLOPT_POSTFIELDS] = http_build_query( $post_data ); $curl-&gt;addSession( 'https://www.facebook.com/messages', $opts ); $result = $curl-&gt;exec(); $curl-&gt;clear(); print_r( $result ); </code></pre> <p>Note, that sometimes you need to load a page first, to set a cookie, before they will let you login.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload