If you want to develop a Twitter app. You need to register your application with Twitter. That means you should have your production URL ready before you think to start your development. When you finished with registration, you will receive consumer key and consumer secret. These unique credentials will help your app to interact with Twitter. No big deal. You can visit your all registered applications on http://twitter.com/oauth. And to register for new app you need to visit http://twitter.com/apps/new
Some things need to consider are the call back URL and the access type. Basically call back URL will be the production level URL of your application not your local host. If you want to use Twitter for authentication, then on successful authentication your call back URL will be invoked. Access type is the operations that your app is going to do. Read-only mode is that you only want the read access. And in Read-Write mode you can send tweets and can do other operations.
And I assume that you people know how Twitter authenticates. I am telling here in steps.
- You app will generate a URL with unique access token
- Your visitor will click on that URL, which will take your the Twitter web. Where he could allow your app to access or deny
- On if he allows your app, he will be asked to enter his Twitter user name and password
- And on successful authentication, Twitter will take user to your web. By calling your mentioned call back URL