PHP Classes

Connecting To Linked In

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Connecting To Linked In  >  (Un) Subscribe thread alerts  
Subject:Connecting To Linked In
Summary:Invalid Token
Messages:2
Author:Scott Griswold
Date:2013-09-05 17:07:41
Update:2013-10-13 08:42:16
 

  1. Connecting To Linked In   Reply   Report abuse  
Picture of Scott Griswold Scott Griswold - 2013-09-05 17:07:41
Dear Mr. Lemos,

I was wondering if you could answer a question about your PHP OAuth API package? I have downloaded the code and have tried it with my own account on Linked In. Below is the result that I get

OAuth client result

The application authorization was obtained successfully.
Access token: XXXX-XXXX-XXXX
Access token secret: XXX-XXX-XXX

Access token expiry: 2013-11-04 16:26:43 UTC


when I try and take the Access token and use it in a sample API call to Linked i get an error message saying that the token is not valid


My questions:

1. Is the Linked in code delivered in the package use OAuth 1 or OAuth 2?
2. Are there any other steps I need to do using your library or does the message above mean that I should be able to successfully access the Linked IN API with the access token provided?

I ask these questions because I believe that the issue is on the Linked in side, but I want to be sure there is something I am not doing with your library

Regards,

Scott Griswold



  2. Re: Connecting To Linked In   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-10-13 08:42:16 - In reply to message 1 from Scott Griswold
Currently the class uses OAuth 1.0a for LinkedIn.

If you base your code in the login_with_linkedin.php example, it should work fine.

Did you change the example code? If so, can you post a minimal sample of the code that you changed, so I can see what may be wrong?