Skip to content

Instantly share code, notes, and snippets.

@tedliou
Created August 29, 2021 05:59
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 tedliou/a319d4af1ff322214a20a8008bb33c61 to your computer and use it in GitHub Desktop.
Save tedliou/a319d4af1ff322214a20a8008bb33c61 to your computer and use it in GitHub Desktop.
<?php
if (isset($_POST['Token'])){
$uri = "https://graph.fb.gg/v11.0/me?fields=id%2Cname&access_token=";
$token = $_POST['Token'];
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $uri . $token);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_exec($curl);
curl_close($curl);
}else{
echo '400';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment