Created
August 29, 2021 05:59
-
-
Save tedliou/a319d4af1ff322214a20a8008bb33c61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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