작동하지 않습니다하지만 난 오류를 얻고 있었다 :Laravel 5.5 사교계 내가 최근 laravel 5.5 laravel의 사교계를 통합하는 시도
지금은 어느 정도 그것을 디버깅하고 기본적으로 이것은 오류를 만들어 줄 것입니다GuzzleHttp \ Exception \ ClientException (400) Client error:
GET https://graph.facebook.com/v2.10/me? access_token=$my_token&appsecret_proof=my_proofsecret
resulted in a400 Bad Request
response: {"error":{"message":"Error validating access token: Session has expired on Tuesday, 03-Oct-17 05:00:00 PDT. The current (truncated...)
FacebookProvider.php line number 89
는 :
$appSecretProof = hash_hmac('sha256', $token, $this->clientSecret);
경우 :
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);
}
이 라인이다 나는이 모든 것을 주석으로 처리한다. 그렇지 않으면 블럭이 잘 작동하는 것처럼 보이고, 틀린 부분이 무엇인지 잘못 판단한다.
해당 행을 삭제하면 로그인 할 수 있습니까? 토큰이 유효합니까? 잘못된 토큰 또는 자격 증명이 전달되면 나타나는 오류입니다. –
실제로 나는 다른 APP 비밀 코드를 사용하고있었습니다. 죄송합니다 –
지금 제대로 작동합니까? –