You can implement twitter API in two ways, such as OAuth and XAuth.
If you use XAuth, then it is so easy to implement twitter api in your application. To do this, follow the steps
1 Download the source code for this link,
2 First, you must register in your application via twitter through your Twitter account. After you can get the API key, consumer key and consumer secret key, as well as a token access key and a token access secret.
3 You must send an email to api@twitter.com with information about the API, consumers, consumer privacy and applications, then they will be played.
4 After that, you want to replace your keys in the sample code and execute it.
Note. For OAuth, follow this , it is very easy to use.
Hope this helps you.
source share