1. Buat File status.php Dengan Memasukan Script Ini
2. Lalu Buat File my_token.txt Isi Token, Cara Mengambil Token Lihat Di Cara Mendapatkan Token Facebook Permanent<?php$access_token = file_get_contents("my_token.txt");/*************************************************************| BOT AUTO UPDATE STATUS KOCENG |*************************************************************/$url = "https://graph.facebook.com/me/feed?method=POST";function randomline( $filename ){$lines = file( $filename );return $lines[array_rand( $lines )];}$status = " ".randomline('status.txt')." ";$ch = curl_init();$attachment = array( 'access_token' => $access_token, 'message' => $status,);curl_setopt($ch, CURLOPT_URL,$url);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);$result= curl_exec($ch);curl_close ($ch);if ($result){echo " SUCCESS ";}?>
3. Lalu Buat File Lagi Yang Di Beri Nama status.txt Lalu Tulis Status Kalian
0 komentar:
Posting Komentar