Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre>
- <?php
- // shor7cut - BUG6SEC http://facebook.com/bug7sec
- error_reporting(0);
- $acces_token = "CAACEdEose0cBACjUYfel2cXhXVtwZAsNXxntDWw4r9Os5ZAwmTG0VassEvsQeoWqxDg7qXL3HWPgxZBKIfP2a6umVCxmYas1uyBiFZCjxcBq4IcB417IVrJhSNILF2cdHvevfpFXGr0boqIWVlUJy8ZB7s0xedMgq2A9wPj332eC2gKnkTiRPP8ZD";
- $url_exp = file_get_contents("https://graph.facebook.com/v2.2/me?fields=groups{id,name,owner},accounts&access_token={$acces_token}");
- $json_url_exp = json_decode($url_exp,TRUE);
- if($json_url_exp){
- $url = file_get_contents("https://graph.facebook.com/v2.2/me?fields=groups{id,name,owner},accounts&access_token={$acces_token}");
- $json_url = json_decode($url,TRUE);
- foreach ($json_url['groups']['data'] as $key => $data_groups) {
- echo 'Nama Groups : <a href="https://www.facebook.com/groups/'.$data_groups['id'].'">'.$data_groups['name'].'</a><br>';
- echo 'Pemilik Groups : '.$data_groups['owner']['name']."<br><br>";
- }
- }else {
- echo "Ops... Mungkin akses token sudah 'expire' atau mungkin juga karena kesalahanan akses token yang kurang tepat.";
- }
- /*
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement