Exception: Serialization of 'Closure' is not allowed hybridauth linkedin

Hybridauth Linkedin not working phalcon

Steps to fix  it 

1. Navigate to the libraries folder

2. hybridauth/Hybrid/thirdparty/LinkedIn/LinkedIn.php

3. At line 126 change to 
const _URL_REQUEST                 = 'https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress+rw_nus';

const _URL_REQUEST                 = 'https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress+w_share'; 

That is it.

Still problem

Make sure your server and linkedin timestamp are same - 

timestamp_refused error