Senin, 26 November 2012

BOT Auto Update Status



Yang di butuhkan :
  • PHP untuk Eksekusi
  • Cronjobs
  • Token Aplikasi yang akan Kita Pakai
  • Berdo'a kepada Tuhan YME, semoga kerjaannya berhasil.. :)

Kita buat dulu > http://otonx.onhacker.com/hadist.txt File txtnya

Script PHP nya :
<?php
$access_token = "YOUR TOKEN";
$url          = "https://graph.facebook.com/me/feed?method=POST";
$linx         = "YOUR STATUS PHP URL";
$status       = file_get_contents($linx);
$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);
?>
Random Text :
<?
srand((double)microtime()*1000000);
$arry_txt = preg_split("/--BATAS--/", join('', file("http://otonx.onhacker.com/bentar.txt")));
echo $arry_txt[rand(0, sizeof($arry_txt) -1)];
?>
Other STATUS PHP URL :
http://otonx.onhacker.com/adzan.php
http://otonx.onhacker.com/ayat.php
http://otonx.onhacker.com/doa.php
http://otonx.onhacker.com/hadist.php
http://otonx.onhacker.com/konyol.php
http://otonx.onhacker.com/motivasi.php
http://otonx.onhacker.com/semangat.php
http://otonx.onhacker.com/teast.php
Get Token :
https://www.facebook.com/dialog/permissions.request?app_id=49340319393&next=http://www.facebook.com/&response_type=token&perms=publish_stream,user_photos,friends_photos,publish_actions,read_stream,email,user_status,user_activities,user_likes,offline_access
Other Apps :
  • BlackNerry = 2254487659
  • Plurk = 47804741521
  • Snaptu = 20407635301
  • Twitter = 2231777543
  • Koprol = 73599113332
  • Windows Phone = 7933375107
  • HP Web OS = 4620273157
  • OVI Nokia = 49340319393
  • Android = 148061315211358
  • Palm Os = 7081486362

Other Free Hosting :

NB :
  • Anda Harus mempunyai Hostingan yg Support PHP n Cronjobs
  • Apabila ada yg kurang atau salah, Silahkan anda Berkomentar dibawah... tolong di koreksi ya :* 

Sumber

0 komentar:

Posting Komentar