symfonyフレームワークでログインをLinkedInと統合していますHappyr/LinkedIn-API-clientを使用していますが、私はを取得しています例外。symfonyでLinkedInでログイン
私はついています。例外のスクリーンショットです。
後、私はエラーを取得しています近くのコードです。
protected function fetchNewAccessToken()
{
$storage = $this->getStorage();
$code = $this->getCode();
if ($code !== null) {
$accessToken = $this->getAccessTokenFromCode($code);
if ($accessToken) {
$storage->set('code', $code);
$storage->set('access_token', $accessToken);
return $accessToken;
}
// code was bogus, so everything based on it should be invalidated.
$storage->clearAll();
throw new LinkedInApiException('Could not get access token');
}
// as a fallback, just return whatever is in the persistent
// store, knowing nothing explicit (signed request, authorization
// code, etc.) was present to shadow it (or we saw a code in $_REQUEST,
// but it's the same as what's in the persistent store)
return $storage->get('access_token', null);
}