I don’t know much about that particular OAuth library, but if you managed to get to the redirect step and everything was still working, then you’re likely mostly in good shape. Do you know much about how your OAuth library works? When fetching your timeline, are you using an access token? Do you know how to get more information from the 401 exception? Errors from the Twitter API contain messages that accompany the numerical code and those messages are very helpful when debugging cases like this.