26/3/17

Share Code Curl Share By Aron


Code curl share by aron :
<?php
// code by vta - edit by aron
// fb.me/aron21.vn

// User
$user = 'aron21.vn';
// Token iphone
$tokens = array(
'TOKEN1',
'TOKEN2'
);
$token = $tokens[rand(0, count($tokens)-1)];
$accounts = json_decode(aron('https://graph.facebook.com/me/accounts?access_token='.$token), true);
$feed = json_decode(aron('https://graph.facebook.com/'.$user.'/feed?access_token='.$token.'&limit=1'), true);

foreach($accounts['data'] as $aron){
echo $aron['access_token'] . '<br>';
echo aron('https://graph.facebook.com/'.$feed['data'][0]['id'].'/sharedposts?method=post&access_token='.$aron['access_token']) . '<br>';
}

function aron($url) {
    $data = curl_init();
    curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($data, CURLOPT_URL, $url);
    $aron = curl_exec($data);
    curl_close($data);
    return $aron;
}

echo'<meta http-equiv="refresh" content="0">';

Nguồn : Aron - V4 Team

Không có nhận xét nào

Đăng nhận xét

Được tạo bởi Blogger.