Thứ Sáu, 22 tháng 12, 2017

auto thả tim update ngày 22 12 2017

Link auto http://nghiahsgs.xyz/autoFb/autoCamXuc.php?rect=LOVE&token=token của bạn
Link Video hướng dẫn https://youtu.be/DqAlPhQE1g4
mã nguồn
<?php
error_reporting(false);
$token=$_GET['token'];
$rect=$_GET['rect'];
//$token = 'EAAAAUaZA8jlABAD8Gedfxd0j9kKpFPUHzkpfvgsewygyQ3IAgAiP4ZBZAcN2w5PN7fN7VyUNemsak4mPVNM2HIBqauIUoAGw0eQ7GXDZCTYSU8QQPvKdiGMkdQFKXzZA7Y9aqPouljorq3Pc0oiToY8tYPwUMwaRI8F8Be09hEQZDZD';
$limitnf=5; // 5 Status  NewFeed 1 Lần
//lay id bai viet moi nhat.id se co dang 100006526419466_2069636216597239
$puaru=json_decode(puaru('https://graph.facebook.com/me/home?fields=id,message,created_time,from,comments,type&access_token='.$token.'&offset=0&limit='.$limitnf.''),true);
for($i=1;$i<=count($puaru[data]);$i++)
{
        set_time_limit(0);
        echo $puaru[data][$i-1][id];
     
//echo puaru('https://graph.facebook.com/'.$puaru[data][$i-1][id].'/reactions?type=PRIDE&method=post&access_token='.$token);
$url='https://graph.facebook.com/'.$puaru[data][$i-1][id].'/reactions?type='.$rect.'&method=post&access_token='.$token;
if(GetData($url,$data)){
echo $data;
}else{
echo "ko the get dc xml";
}

}
function puaru($url)
{
      $data = curl_init();
      curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($data, CURLOPT_URL, $url);
      $hasil = curl_exec($data);
      curl_close($data);
  return $hasil;
}

function GetData($url,&$data='')
 {


$ch=curl_init();

curl_setopt($ch,CURLOPT_URL, $url);
// disable auto echo
curl_setopt($ch,CURLOPT_RETURNTRANSFER , true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36');
curl_setopt($ch,CURLOPT_REFERER , 'https://www.google.com.vn/');
curl_setopt($ch,CURLOPT_ENCODING , '');
curl_setopt($ch,CURLOPT_FOLLOWLOCATION , false);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
//curl_setopt($ch,CURLOPT_HEADER , true);
curl_setopt($ch,CURLOPT_TIMEOUT , 10);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT , 10);
$data=curl_exec($ch);

$err=curl_error($ch);
curl_close($ch);
if($err){
return false;
}
return true;
}
?>

1 nhận xét: