CURL SUB 2017
<?php
/* == ID tài khoản muốn tăng share == */
$user = 'Tao.xin.may.rip.tao.di4';
/* == Token tài khoản chứa page == */
$token = 'EAAAAAYsX7TsBAEdetmoxqMJIN33CtIc6uodZAxgbZBTCMrvT4HxmYFlKrlKzKwWVUs4pkAFNndnsAgzcZCcbqSiqtSSILfxwoY6wZC3sZBI4nG3zyiwnL9taOMn9VE0JAhHcZBj43DpEJP7UG4AuPsM8XLdLum55RYKmdfUZBTYVoqsndizU9ZBxgCLHbjxgR4scLpeuMSBEnQZDZD';
$accounts = json_decode(cURL('https://graph.facebook.com/me/accounts?access_token=' . $token),true);
$feed = json_decode(cURL('https://graph.facebook.com/' . $user . '/feed?access_token='.$token.'&limit=1'),true);
foreach ($accounts['data'] as $data) {
//echo $data['access_token'] . '<br/>';
echo cURL('https://graph.facebook.com/' . $feed['data'][0]['id'] . '/sharedposts?method=post&access_token='.$data['access_token']) . '<br/><br/><br/>';
}
/* == Hàm get == */
function cURL ($url) {
$data = curl_init();
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_URL, $url);
$hasil = curl_exec($data);
curl_close($data);
return $hasil;
}
?>
<meta http-equiv="refresh" content="0">
CURL SUB 2017
Reviewed by Nguyễn Thị Thanh Tình ✔️
on
tháng 8 01, 2017
Rating:
Không có nhận xét nào: