Skip to content

Instantly share code, notes, and snippets.

@ldavnn
Created September 26, 2017 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldavnn/b95dbe226654b772a29b72e2639e2c41 to your computer and use it in GitHub Desktop.
Save ldavnn/b95dbe226654b772a29b72e2639e2c41 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>cURL Share Max Speed By Lê Duy Ánh</title>
</head>
<body>
<script src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
<div id="ldavn"></div>
<?php
if(isset($_GET['token'], $_GET['idshare'])){ // share.php?token=TOKEN&idshare=IDSTT
$token = $_GET['token'];
$idshare = $_GET['idshare'];
}else{
echo 'CÚT';
}
$token_page = json_decode(file_get_contents('https://graph.fb.me/me/accounts?access_token='.$token),true);
//print_r($token_page);
foreach ($token_page['data'] as $data) {
echo '<script>$("#ldavn").load("https://graph.facebook.com/'.$idshare.'/sharedposts?access_token='.$data['access_token'].'&method=post");</script>';
}
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment