Newbie - can't find relevant documentation for my situation


Please forgive me if this isn’t the right place to post this - I don’t believe it fits into any of the categories available - possibly due to my ignorance.

All I’m wanting to do is to write a standalone desktop client to post my tweets; this will be in C#. This isn’t to sell etc, it’s just for me.

Anyway, I’ve found some examples, but can’t get them to work: I get errors like “The remote server returned an error: (401) Unauthorized.”

I’m passing my username/password, and now I’m at a loss.



Twitter authorization doesn’t work by username/password - you need to use OAuth. Twitter’s documentation is here:

If you would prefer not to write your own OAuth code, there are 3rd party libraries, some listed on Twitter’s site ( I wrote LINQ to Twitter, which is free and you can learn more about here:

And here’s LINQ to Twitter’s OAuth documentation: