Skip to content

Instantly share code, notes, and snippets.

/Callback.php
Created Dec 18, 2017

Embed
What would you like to do?
<?php
$code = $_GET['code'];
$url = "https://graph.accountkit.com/v1.2/access_token?grant_type=authorization_code&code=".$code."&access_token=AA|<facebook_app_id>|<account_kit_app_secret>";
$get = json_decode(file_get_contents($url),true);
header('Location:home.php?access_token='.$get['access_token'].'');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.