"; echo " GET: http://m.facebook.com/messages/read/?deleteselected=0&forward=0& start=1000& page_size=1000& tids=id.".$id."& sk=inbox&tid=id.".$id."& see_older=1& refid=12 "; curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, '3'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'fb_cookies.txt'); curl_setopt($ch, CURLOPT_NOBODY, false); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, 'http://m.facebook.com/messages/read/?deleteselected=0&forward=0&start='.$number.'&page_size='.$number.'&tids=id.'.$id.'&sk=inbox&tid=id.'.$id.'&see_older=1&refid=12'); curl_setopt( $ch, CURLOPT_ENCODING, "" ); $content = curl_exec($ch); $myFile = "out.txt"; $fh = fopen($myFile, 'w'); $html = str_get_html($content); $ret = $html->find('div[class=acw apl abt]'); foreach($ret as $r) { fwrite($fh, $r); fwrite($fh, "----------\n"); } fclose($fh); } } // m 1 464415590246663 echo "

Facebook download all messages - Coded by Metts


"; $login_email = 'asdd@hotmail.com'; //EMAIL $login_pass = 'yspass'; //PW $id = "434242453453"; $number = 300; // ne változtatsd $data = fb_login($login_email,$login_pass,$id,$number); ?>