return $hasil;
}
$astok = ''; //akses token yang tidak expired
$fql = 'SELECT notification_id, sender_id, title_text, object_id, body_html,object_type , href FROM notification WHERE recipient_id=me() AND is_unread = 0 AND is_hidden = 0';
$fql2 = str_replace(" ","+",$fql);
$url ='https://graph.facebook.com/fql?q='.$fql2.'&access_token='.$astok; // graph untuk tampilkan notifikasi
$kodeHTML = bacaHTML($url); // menjalankan fungsi curl diatas
$beranda = (array)json_decode($kodeHTML); // mendapatkan bentuk array dari format json
for($i=0; $i
{
$notif['object_id'][$i] = $beranda['data'][$i]->object_id;
Beri Komentar
Belum ada komentar. Jadilah yang pertama untuk memberikan komentar!