RieqyNS13 icon

auto like

RieqyNS13 | PRO | 05/12/14 03:54:14 PM UTC | 0 ⭐ | 692 👁️ | Never ⏰ | []
PHP |

680 B

|

None

|

0 👍

/

0 👎

<?php
$token="token mu cok";
set_time_limit(0);
function curl($url){
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $exec = curl_exec($ch);
    curl_close($ch);
    return $exec;
}
$gay = curl("https://graph.facebook.com/v1.0/me/home?fields=message,picture,link,story,caption&limit=50&access_token=".$token);
$data = json_decode($gay);
if(isset($data->data))foreach($data->data as $mbuh)echo curl("https://graph.facebook.com/".$mbuh->id."/likes?&method=POST&access_token=".$token);
elseif(isset($data->error))echo $data->error->message;
else echo "error tidak diketahui";
?>

Comments