Please go to Twitter Apps page https://dev.twitter.com/apps/new , create an application, and in the line 35 set the client_id to Consumer key and client_secret with Consumer secret. The Callback URL must be http://18.142.0.193/webmail/modules/OAuthIntegratorWebclient/Classes/OAuthClient/login_with_twitter.php If you want to post to the user timeline, make sure the application you create has write permissions