How to create app for sign in with Twitter


Could anyone assist me with precise instructions on how to set up an app for sign in/log in with Twitter. My script provides a button and spaces to enter consumer key and secret. I have entered these. When I try and log in I get an error from Twitter message. Many Thanks.


What error do you get? what button are you using?