check these tutorials http://www.chetanvarshney.com/social-media/twitter/twitter-application-for-user-management-plugin/..