if(strlen($client->client_id) == 0|| strlen($client->client_secret) == 0)
die('Please go to Facebook Apps page https://developers.facebook.com/apps , '.'create an application, and in the line '.$application_line.' set the client_id to App ID/API Key and client_secret with App Secret');