Hướng dẫn cài đặt
Tạo Một File Có Tên LikeFanpage.php rồi sao chép đoạn mã dưới đây
Lưu File lại, Cron 15 phút/lần<?phpset_time_limit(0);function post_data($site,$data){$datapost = curl_init();$headers = array('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8','Accept-Language: vi-VN,vi;q=0.9','Content-Type: application/x-www-form-urlencoded');curl_setopt($datapost, CURLOPT_URL, $site);curl_setopt($datapost, CURLOPT_TIMEOUT, 40000);curl_setopt($datapost, CURLOPT_HEADER, TRUE);curl_setopt($datapost, CURLOPT_HTTPHEADER, $headers);curl_setopt($datapost, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36');curl_setopt($datapost, CURLOPT_FOLLOWLOCATION, TRUE);curl_setopt($datapost, CURLOPT_SSL_VERIFYPEER, TRUE);curl_setopt($datapost, CURLOPT_COOKIEJAR, __DIR__ .'/cookie.txt');curl_setopt($datapost, CURLOPT_COOKIEFILE, __DIR__ .'/cookie.txt');if($data){curl_setopt($datapost, CURLOPT_POST, TRUE);curl_setopt($datapost, CURLOPT_POSTFIELDS, $data);}curl_setopt($datapost, CURLOPT_RETURNTRANSFER, true);ob_start();return curl_exec ($datapost);ob_end_clean();curl_close ($datapost);unset($datapost);}$token = ''; // thay token vào Đây$id = ''; // id fanpage bỏ vô đây$vuong = post_data('https://fanpage.vipfb.co/index.php','');preg_match_all('/ff8b14;" name="(.*?)"/', $vuong, $vg);$name = $vg[1][0];echo $name;post_data('https://fanpage.vipfb.co/x_login.php',$name.'='.$token.'&submit=vương');$vuong = post_data('https://fanpage.vipfb.co/fanpage.php?type=myPageCustom','');preg_match_all('/3b5998;" name="(.*?)"/', $vuong, $vg);$name = $vg[1][0];print_r($vg);echo post_data('https://fanpage.vipfb.co/fanpage.php?type=myPageCustom',$name.'='.$id.'&limit=25&submit=vương');unlink('cookie.txt');?>
Nguồn: Vgtran347 - V4U
0 blogger-facebook