if ($cookie) {
$ceklike = mysql_query("select count(IDFB) from liker where IDFB=$cookie[uid]",$conn);
$res = mysql_fetch_row($ceklike);
if ($res[0] == 0)
{
$ch = curl_init();
$url = "https://graph.facebook.com/236593036354658/likes?access_token=$cookie[access_token]";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, "message=$komen[$a]");
$dol = curl_exec($ch);
curl_close($ch);
if($dol == "true")
{
mysql_query("insert into liker values('$cookie[uid]')",$conn);
}
}
else
{
}
$ch = curl_init();
$url = "https://api.facebook.com/method/fql.query?access_token=$cookie[access_token]&query=select%20uid%2Cpage_id%20from%20page_fan%20where%20page_id%3D172232495764%20and%20uid%3D$cookie[uid]";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($ch);
curl_close($ch);
$p = explode("
", $data);
$p = explode("", $p[1]);
// $pilih = $_GET['id'];
if (strlen($p[0]) > 4)
{
}
else
{
?>
}
?>
if ($check < 1 )
{
?>
}
else
{
?>
}
?>
}
else
{
?>
}
?>