Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
protected function getUserByToken($token)
$meUrl = $this->graphUrl.'/'.$this->version.'/me?access_token='.$token.'&fields='.implode(',', $this->fields);
if (! empty($this->clientSecret)) {
$appSecretProof = hash_hmac('sha256', $token, $this->clientSecret);
$meUrl .= '&appsecret_proof='.$appSecretProof;
$response = $this->getHttpClient()->get($meUrl, [
'headers' => [
'Accept' => 'application/json',
return json_decode($response->getBody(), true);
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.