As long as your app is registered with Twitter with an appropriate name, and you're using your consumer key and secret, the "from [yourapp]" should be automatic with OAuth. If it's not, it's probably a bug/temporary issue. I'm using OAuthBase.cs myself with no problems with source at the moment:
http://twitter.com/andrewbadera/status/3447332737 However, is what you provide all of your code? With OAuth you don't use the username/password, you use the authorization URL to pass the user to Twitter, where they can approve access for your app. Twitter then redirects them back to your callback url (which you can provide at call time as oauth_callback rather than use the setting in the Twitter application registry) where it also POSTs the access token and secret for the user. You then make your request using your consumer token values PLUS the user token values. Your token values identify your service or app, the user token identify the user. Username/password is only for Basic Auth, and Basic Auth only shows "from [app]" if the app predates OAuth. Http Basic is in the process of slowly, slowly being deprecated. When you provide the username/password but not the user token/secret, I believe that class defaults to Http Basic Auth. ∞ Andy Badera ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera) On Thu, Aug 20, 2009 at 8:27 AM, Kuntal<kuntal.mazum...@gmail.com> wrote: > > Hello All, > > I want to show updates are <from my web application name> instead of > "from web" > > We want to integrate the status update system of twitter in our web > application which is made in .NET Framework 2.0. We have integrated it > successfully and is updating the status. But the problem we are facing > that the message says..... "from Web". > > We want to make it "from <Our Site Name>". For that we have registered > our application in twitter. > > > It provided us the following information... > > 1) Consumer key > 2) Consumer secret > 3) Request token URL > 4) Access token URL > 5) Authorize URL > > We are using the API and is using the following code......... > > > public void Test() > { > > OAuth_Twitter obj = new OAuth_Twitter(); > > obj.strusername = "<User Name>"; > obj.strpassword = "<Password>"; > > obj.consumerKey = "<Consumer key>"; > obj.consumerSecret = "<Consumer secret>"; > obj.token = obj.AuthorizationLinkGet(); > > obj.oAuthWebRequest("POST", "https://twitter.com/statuses/ > update.xml", "status=" + "<The Message To Send>" + "&source=my_app"); > } > > > Please look at above code. We have two class file also. Those are > "OAuth_Twitter.cs" and "OAuthBase.cs". In the above code please look > that we have used "source=my_app" to make from "from Web" to "from > <Our Site Name>". We got this suggestion from many sites as they > suggested. But we are so sorry that we could not reach to our > objective. > > Please help us out to solve our problem. We are eagerly waiting for > your reply. > > Thanks.... >