Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- /*
- Что-бы получить токен, перейдите по ссылке: vk.cc/18LU3y
- */
- $access_token = '';// Ваш токен
- $id = '1'; //id друга
- $pid = '1'; // номер записи на стене!
- $rep = '0'; //Репост
- $lag = '3'; //Задержка
- while(1){
- $go = curl( 'https://api.vk.com/method/wall.addLike?owner_id='. $id . '&post_id='. $pid . '&repost='. $rep .'&access_token=' . $access_token );
- $go2 = curl( 'https://api.vk.com/method/wall.deleteLike?owner_id='. $id . '&post_id='. $pid . '&repost='. $rep .'&access_token=' . $access_token );
- $json = json_decode($go, true);
- if ($json["response"] != '')
- {echo 'Good!'; }
- else
- { echo 'token no valid';}
- sleep($lag);
- }
- function curl( $url ) {
- $ch = curl_init( $url );
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
- curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
- curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
- $response = curl_exec( $ch );
- curl_close( $ch );
- return $response;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment