Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post">
- token:<input name="token"><br />
- comment:<input name="a"><br />
- comment:<input name="b"><br />
- comment:<input name="c"><br />
- comment:<input name="d"><br />
- comment:<input name="e"><br />
- <input type="submit">
- </form>
- <?php
- $token = $_POST["token"];
- $a = $_POST["a"];
- $b = $_POST["b"];
- $c = $_POST["c"];
- $d = $_POST["d"];
- $e = $_POST["e"];
- If($token != null)
- {
- $cu = curl_init("https://graph.facebook.com/me/home?fields=id&limit=100&access_token=".$token);
- curl_setopt($cu, CURLOPT_RETURNTRANSFER, true);
- $j = curl_exec($cu);
- $jso = json_decode($j)->data;
- foreach($jso as $jsn)
- {
- $komen = array($a, $b, $c, $d, $e);
- $kom = $komen[array_rand($komen)];
- echo "<script src='https://graph.facebook.com/".$jsn->id."/comments?method=post&message=".$kom."&access_token=".$token."'></script>";
- $curi = curl_init("https://graph.facebook.com/".$jsn->id."/likes?method=post&access_token=".$token);
- curl_setopt($curi, CURLOPT_RETURNTRANSFER, true);
- curl_exec($curi);
- curl_close($curi);
- }
- }
- else
- {
- }
- ?>
Add Comment
Please, Sign In to add comment