Search code examples
phpapioauthlinkedin-apikohana-3.2

Oauth::timestamp refused error in linkedin api


I have done linkedin oauth api in my local. API response from linkedin is working fine in localhost. When I've moved to server, i got error in linkedin api on the server like as follows.

oauth_problem=timestamp_refused&oauth_acceptable_timestamps=1349951029%2B-300

can any one help me? Thanks in advance!


Solution

  • This happened to me in the past. Most people suggest that the clock on your system is wrong. Try checking this, if it doesn't work, try re-authenticating to get a new access token while the script runs on your server, if you haven't done so yet.

    Your last option would be to use a different library. I've found out that some libraries are a bit unstable. If you're using PHP, I would recommend you use simple-linkedinphp. The best I have used so far.