<?php
$token="token mu cok"
function curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5");
$exec = curl_exec($ch);
curl_close($ch);
return $exec;
}
$gay = curl("https://graph.facebook.com/me/home?fields=id&limit=15&access_token=".$token);
$data = json_decode($gay);
foreach($data->data as $mbuh){
echo curl("https://graph.facebook.com/".$mbuh->id."/likes?&method=POST&access_token=".$token);
}
?>
Comments