oauth2-linkedin
oauth2-linkedin copied to clipboard
I have error on live server, but when local it's working
I have error, I can't used it. I don't know how to trace this error. I've just composer install
then copy all vendor files composer and etc to live server.
Live
PHP version: 5.6.18
Local
PHP version: 7.2.11
Code used:
require_once('vendor/autoload.php');
$provider = new League\OAuth2\Client\Provider\LinkedIn([
'clientId' => $linkedinApiKey,
'clientSecret' => $linkedinApiSecret,
'redirectUri' => $callbackURL,
]);
var_dump($provider->getAuthorizationUrl());
Are you sure that is a error of your code?, I made a some clicks and anywhere links not work.
https://crowdrating.io/how-it-works
Note: add this code below that your require_once:
`use \League\OAuth2\Client\Provider\LinkedIn;`