code php cho ae thả tim dạo
link video hướng dẫn https://www.youtube.com/watch?v=lm8buvqS5gE
<?php
error_reporting(false);
$token=$_GET['token'];
//$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];
$camxuc= array('LOVE');
$mess=$camxuc[rand(0,count($camxuc)-1)];
echo puaru('https://graph.facebook.com/'.$puaru[data][$i-1][id].'/reactions?type='.$mess.'&method=post&access_token='.$token.'');
}
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;
}
?>
link video hướng dẫn https://www.youtube.com/watch?v=lm8buvqS5gE
<?php
error_reporting(false);
$token=$_GET['token'];
//$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];
$camxuc= array('LOVE');
$mess=$camxuc[rand(0,count($camxuc)-1)];
echo puaru('https://graph.facebook.com/'.$puaru[data][$i-1][id].'/reactions?type='.$mess.'&method=post&access_token='.$token.'');
}
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;
}
?>
0 nhận xét:
Đăng nhận xét