Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to work with library #21

Open
melnikovic opened this issue Sep 14, 2015 · 1 comment
Open

Unable to work with library #21

melnikovic opened this issue Sep 14, 2015 · 1 comment

Comments

@melnikovic
Copy link

Hey,
I'm having problem with using this library at all,

I basicly just added this at start:
include 'LinkedIn.php';

$li = new LinkedIn\LinkedIn(
array(
'api_key' => 'api_KEY',
'api_secret' => 'API_SECRETone',
'callback_url' => 'http://localhost/xampp/linkedin/'
)
);

which throw now error, but as soon as I try do something else like:
$token = $li->getAccessToken($_REQUEST['code']);

Error dispaly: Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Invalid authorization code. Pass in the "code" parameter from your callback url' in

@testchik
Copy link

testchik commented Apr 3, 2017

You needs to make two file one for display login and another for call back url. In second file needs to call $token = $li->getAccessToken($_REQUEST['code']);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants