if(strlen($client->client_id) == 0|| strlen($client->client_secret) == 0)
die('Please go to LinkedIn Apps page https://www.linkedin.com/secure/developer?newapp= , '.'create an application, and in the line '.$application_line.' set the client_id to Consumer key and client_secret with Consumer secret. '.'The Callback URL must be '.$client->redirect_uri).' Make sure you enable the '.'necessary permissions to execute the API calls your application needs.';