Need help with twitter integration

Hey guys, I’m trying to make a simple feature that would allow players to tweet some text from in game. So the code that I found was something similar to this

function TwitterSend(username: String, password: String, message: String) {
    var twitterURL: String = "http://" + username + ":" + password + "@twitter.com/statuses/update.json";
    var twitterForm = new WWWForm();
    twitterForm.AddField("status", message);
    var WWWpost = WWW(twitterURL, twitterForm);
    yield WWWpost;
    if(WWWpost.error) {
        ConfirmationString = WWWpost.error +"";
    } else {
        ConfirmationString = "Success";
    }
}

Only problem is I get the following error when I execute the function

Could not resolve host, No data found of requested type

I did some looking around and heard alot about oauth but I couldn’t really find any examples of how I could implement it for something like this. Does anyone know any good tutorials that would help with something like this? Or can someone show me how to fix this code so it works? My game is for pc and mac btw.

You could probably just use a .NET library from the Twitter site itself:
https://dev.twitter.com/docs/twitter-libraries

You may find the following thread useful:

The plugin by Prime31 makes it incredibly easy to integrate Twitter into mobile apps. I do not know whether this would help with desktop releases but might be worth looking into…