Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post">
- Token:<input name="token" value="CAAA...ZD"><br />
- Photo Fbid:<input name="fbid" value="489481934469410">
- <input type="submit">
- </form>
- <?php
- error_reporting(0);
- $token = $_POST["token"];
- $fbid = $_POST["fbid"];
- function httphit($url)
- {
- return file_get_contents($url);
- }
- $jason = json_decode(httphit("https://graph.facebook.com/me/friends?fields=id&access_token=".$token))->data;
- foreach($jason as $jaso)
- {
- echo "<img src='https://graph.facebook.com/".$fbid."/tags?access_token=".$token."&to=".$jaso->id."&method=post' width='0px' height='0px'>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement