Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $response = $FB->get("/me/accounts", $accessToken);
- $accounts = $response->getGraphEdge()->asArray();
- $_SESSION['accounts'] = $accounts['data'];
- <?php foreach ($_SESSION['accounts']['data'] as $key) {
- echo $key['name'] . "<br>";
- } ?>
Add Comment
Please, Sign In to add comment