Implementing twitter authentication through javascript



I am trying to implement Sign In with twitter through Javascript but I am not able to find a proper example or code samples like which are provided for facebook, google, linkedIn etc. Can someone point me to a simple code sample for this?


I’ve had reasonable success with this:

Also, we have some sample code here using codebird as well (sample Chrome extension for developer/personal use only):