Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2017 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7fc99abba45a31f631f6fab9f64a60aa to your computer and use it in GitHub Desktop.
Save anonymous/7fc99abba45a31f631f6fab9f64a60aa to your computer and use it in GitHub Desktop.
<?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