Twitter oAuth with .NET

March 19, 2009256 Comments
Update: This is an older post. See this post for the latest oAuth code.

I recently completed the conversion from Basic Authentication to oAuth for My Tweeple. Since there aren’t many .NET examples out there, I’ve attached an example application. As usual, you’ll need to convert it to meet your needs and apply appropriate error handling, but hopefully this will save someone a little time. 

Download the full code here.


Update
Troubleshooting tips:

  1. Your application’s consumer key and secret should be entered in the web.config file. (from http://Twitter.com/oauth)
  2. The date/time on your machine must be accurate. Make sure you’ve performed a recent sync with a known time source.
  3. If you’re trying to call a Twitter API method that will update data, make sure the oAuth setup is Read/Write on Twitter.com/oAuth.

 

namespace oAuthExample
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string url = "";
            string xml = "";
            oAuthTwitter oAuth = new oAuthTwitter();

            if (Request["oauth_token"] == null)
            {
                //Redirect the user to Twitter for authorization.
                //Using oauth_callback for local testing.
                oAuth.CallBackUrl = "http://localhost/";
                Response.Redirect(oAuth.AuthorizationLinkGet());
            }
            else
            {
                //Get the access token and secret.
                oAuth.AccessTokenGet(Request["oauth_token"], Request["oauth_verifier"]);
                if (oAuth.TokenSecret.Length > 0)
                {
                    //We now have the credentials, so make a call to the Twitter API.
                    url = "http://twitter.com/account/verify_credentials.xml";
                    xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, url, String.Empty);
                    apiResponse.InnerHtml = Server.HtmlEncode(xml);

                    //POST Test
                    //url = "http://twitter.com/statuses/update.xml";
                    //xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.POST, url, "status=" + oAuth.UrlEncode("Hello @swhitley - Testing the .NET oAuth API"));
                    //apiResponse.InnerHtml = Server.HtmlEncode(xml);
                }
            }
        }
    }

 

Thanks to Eran Sandler for his Basic oAuth Class which I happily extended for Twitter.

 

Related:

Twitter oAuth with .NET for the Desktop

Twitter xAuth with .NET

 

 

Technorati Tags: ,,,,
Share

202 Responses to “Twitter oAuth with .NET”

  1. Shannon Whitley says:

    @Paul Shriner – Been there myself. Just glad to hear it’s working.

  2. Toy Dadar says:

    Thanx a lot Shanon….I m beginner in Asp.net…I spent my whole 1 day for doing OAuth twit posting on twitter…Nobody on the internet gives a perfect solution….But finally I get perfect code..Once again thank u very much :)

  3. Marthijn says:

    Thanks for sharing this! :)

  4. Robert P. says:

    Such a help! Thank you.

  5. Tim Duff says:

    Shannon,
    Thanks for a great library. I have a quick question;
    when I create an application on twitter dev portal, it generates Access Token and Access Token Secret.

    When I set these value to your _token and _tokenSecret, I get permission denied.

    Any ideas?

  6. Tim Duff says:

    I got this working fine. However, no matter how many times a user approve the Access/Deny dialog; it shows up again the next time. I check the user’s permission on his/her Twiter account, they already give the permission for this application; however the Access/Deny comes back again and again.

  7. Shannon says:

    @Tim Duff – That is under your control. Once Twitter delivers the token and token secret to you, store it in a database. The next time that the user visits your site, use the token and secret from your database. You can also change the signon page using the authenticate link instead of the authorize address: http://api.twitter.com/oauth/authenticate

  8. [...] is called OAuth. Shannon Whitley wrote a nice OAuth package for .Net and posted it on his blog here. Go grab that and put it in your App_Code directory. I changed the namespace to [...]

  9. [...] is called OAuth. Shannon Whitley wrote a nice OAuth package for .Net and posted it on his blog here. Go grab that and put it in your App_Code directory. I changed the namespace to [...]

  10. Padmavathy says:

    Hi Shan,

    string url = “”;
    string xml = “”;
    oAuthTwitter oAuth = new oAuthTwitter();
    oAuth.ConsumerKey = ConfigurationManager.AppSettings["twitterConsumerKey"];
    oAuth.ConsumerSecret = ConfigurationManager.AppSettings["twitterConsumerSecret"];
    oAuth.Token = “306151605-cX3lg8XBL6FC8wAw2jRXBa0uCanY866LXZ5rfE3N”;
    oAuth.TokenSecret = “jWxwy7vV786AQLTG2RU1yBu6cFWTYmj6ZfUqrZBEDA”;

    //url = “http://twitter.com/account/verify_credentials.xml”;
    //xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, url, String.Empty);
    //apiResponse.InnerHtml = Server.HtmlEncode(xml);

    //POST Test
    url = “http://twitter.com/statuses/update.xml”;
    xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.POST, url, “status=” + oAuth.UrlEncode(“Hello trying to do.”));
    //apiResponse.InnerHtml = Server.HtmlEncode(xml);

    I am getting 403 error. I could post to twitter twice after that i am getting the above error. Any help would be appreciated.

    Thanks for great post.

    The remote server returned an error: (403) Forbidden.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.WebException: The remote server returned an error: (403) Forbidden.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [WebException: The remote server returned an error: (403) Forbidden.]
    System.Net.HttpWebRequest.GetResponse() +5376061
    oAuth.oAuthTwitter.WebResponseGet(HttpWebRequest webRequest) in D:\BlissCity\BlissCity\BLL\oAuthTwitter.cs:273
    oAuth.oAuthTwitter.WebRequest(Method method, String url, String postData) in D:\BlissCity\BlissCity\BLL\oAuthTwitter.cs:244
    oAuth.oAuthTwitter.oAuthWebRequest(Method method, String url, String postData) in D:\BlissCity\BlissCity\BLL\oAuthTwitter.cs:199
    BlissCity.SignInTweet.Page_Load(Object sender, EventArgs e) in D:\BlissCity\BlissCity\SignInTweet.aspx.cs:31
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

  11. Matt Esterly says:

    Great work. We did a project based your example, works perfect. Then the last couple weeks the stored tokens are no longer working even tho the code has not changed. Are time is synchronized and thing look good when we redirect via the call back URL. Anyone else had a similar problem?

  12. Zain Shaikh says:

    Thanks a million for this.

    Could you please write a post on how to use Connect with Facebook along with twitter authentication. and how to manage them in my database that which user is associated with how many services… etc…

  13. Nader says:

    Hello, I downloaded your codebase onto my dev environment (VS2008). I copied my two keys into the web.config. checked to make sure the time on mymachine was correct and the started debug. My app has read/write access.

    I got 401 UnAuthorized.

    this is the call Stack:

    oAuthSample.DLL!oAuthExample.oAuthTwitter.WebResponseGet(System.Net.HttpWebRequest webRequest = {System.Net.HttpWebRequest}) Line 272 C#

    oAuthSample.DLL!oAuthExample.oAuthTwitter.WebRequest(oAuthExample.oAuthTwitter.Method method = GET, string url = “http://twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2Flocalhost%3A4242&oauth_consumer_key={ consumer key removed}&oauth_nonce=9626540&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1314571939&oauth_version=1.0&oauth_signature=JHeJa17jeT8Rcr6DnREsIxB5XVw%3D”, string postData = “”) Line 244 + 0xb bytes C#

    oAuthSample.DLL!oAuthExample.oAuthTwitter.oAuthWebRequest(oAuthExample.oAuthTwitter.Method method = GET, string url = “http://twitter.com/oauth/request_token”, string postData = “”) Line 199 + 0x3d bytes C#

    oAuthSample.DLL!oAuthExample.oAuthTwitter.AuthorizationLinkGet() Line 71 + 0×16 bytes C#

    oAuthSample.DLL!oAuthExample._Default.Page_Load(object sender = {ASP.default_aspx}, System.EventArgs e = {System.EventArgs}) Line 54 + 0×18 bytes C#

    any ideas?
    Thanks
    N

  14. rocky says:

    perfect! thank you.

  15. Jay says:

    How do I save the Oauth information after a user has given my app permission to access their Twitter info?

    I can’t seem to figure out how to call Twitter again without the user having to re-authorize my app.

    Thanks

  16. @Jay – Save the values of the User Token and User Token Secret to a database at the end of the authentication process. After that, you can create the AuthTwitter object again, load the token and tokensecret values from your database, and make a Twitter call without asking for the credentials again.

  17. Andrew says:

    I just Downloaded the full code, but I got 401 error below:

    The remote server returned an error: (401) Unauthorized.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.WebException: The remote server returned an error: (401) Unauthorized.

    Source Error:

    Line 271: finally
    Line 272: {
    Line 273: webRequest.GetResponse().GetResponseStream().Close();
    Line 274: responseReader.Close();
    Line 275: responseReader = null;

    Source File: C:\Users\ahe\Downloads\sample\oAuthTwitter.cs Line: 273

    Stack Trace:

    [WebException: The remote server returned an error: (401) Unauthorized.]
    System.Net.HttpWebRequest.GetResponse() +6111075
    oAuthExample.oAuthTwitter.WebResponseGet(HttpWebRequest webRequest) in C:\Users\ahe\Downloads\sample\oAuthTwitter.cs:273
    oAuthExample.oAuthTwitter.WebRequest(Method method, String url, String postData) in C:\Users\ahe\Downloads\sample\oAuthTwitter.cs:244
    oAuthExample.oAuthTwitter.oAuthWebRequest(Method method, String url, String postData) in C:\Users\ahe\Downloads\sample\oAuthTwitter.cs:199
    oAuthExample.oAuthTwitter.AuthorizationLinkGet() in C:\Users\ahe\Downloads\sample\oAuthTwitter.cs:71
    oAuthExample._Default.Page_Load(Object sender, EventArgs e) in C:\Users\ahe\Downloads\sample\Default.aspx.cs:54
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +91
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    Can anyone help me?

  18. mohamadreza says:

    guys,
    to avoid 401 Unauthorized error, make sure the Callback URL field in your app setting at dev.twitter.com is not blank.
    even if you are setting the callback from the code, just put something there on the website.
    http://twitpic.com/7h09go

  19. [...] I’ve published a project on GitHub that includes examples for authenticating users with some of the major social sites. LinkedIn and Twitter have very similar oAuth implementations so I was able to leverage all of my earlier Twitter .NET oAuth work. [...]

  20. Mark Taylor says:

    If you experience the 401 error, make sure your app has Read and Write access in the Twitter developers website (https://dev.twitter.com/apps).

    If you change the access permissions you need to recreate your access token.

  21. Nishant says:

    Shannon:- I have used the application. But the Twitter icon (.png) is not showing in the Window. I am unable to fins the reason.

  22. [...] method (more info). That is bad news. I don’t know how to program or use that. There are .NET examples available. So it looks like we’ll have to stop using the WGET. Anyone? See the [...]

  23. Giampiero says:

    Good example, but I think it is on Oauth first version.
    Do you know where I can find an appropriate code to Oauth 2 to .NET framework?
    Thank you.

  24. David Reyes says:

    Hi,

    The below code marks an error for me.
    “The name ‘apiResponse’ does not exist in the current context”

    apiResponse.InnerHtml = Server.HtmlEncode(xml);

  25. Shannon says:

    @David Reyes – apiResponse is just a textbox on the page that is used to display the output. If you don’t have a textbox with the name apiResponse, you can create it or simply view the results of “xml” in the debugger.

  26. [...] and will be integrated into our custom STS. It should be mentioned that this class is based on work done in 2009 by Shannon Whitley. Gotta give credit where credit is due. [...]

  27. Rocker says:

    Hello sir,

    Just want to thank you up for the code and updates. After developing some applications with Twitter and FB using your code[a year ago], i was not in touch with oauth related development.
    Your updated code is even more beneficial.
    Today, I tried your code for Etsy and with some minor changes, it works like charm.

    Thank you very much again.
    Rocker

  28. Pratap says:

    Hi shannon i worked with the sample code provided by you.But now i was getting 401 aunthorized error while login only. i could able to post message using your code but while login i was getting this error. i have created new consumer key and consumer secret but still i could not able to get the twitter login screen . please help me on this.

  29. [...] code is still using Eran Sandler and Shannon Whitley’s oAuth/Twitter library but with additional changes to support the new PIN mechanism. If you have visions of .NET Twitter [...]

  30. [...] That’s really all there is to it. You now have a custom branded (if somewhat bare-bones) Twitter client which will tag each of your tweets with your URL of choice. The above code can easily be expanded to provide additional functionality or even turned into a full-fledged Twitter client. It can also be very easily converted to a web-based paradigm. [...]

  31. Robin Kleier says:

    My husband and i have been relieved when Albert managed to finish off his homework from your precious recommendations he obtained out of your web site. It’s not at all simplistic to simply find yourself offering tips that many people today have been trying to sell. We acknowledge we have you to give thanks to because of that. All of the illustrations you made, the easy blog navigation, the friendships you can make it easier to instill – it is mostly awesome, and it is helping our son and the family consider that the matter is excellent, and that is exceptionally important. Thank you for the whole lot!

  32. yahoo is best text us the best i has been same effort with this topic cold

  33. It’s amazing to ppay a visit this web site and reading the views
    of all colleagues regarding this paragraph, while I
    aam also eager off getting experience.

    Loook into my blog post :: sooperarticles

  34. Awesome issues here. I’m very glad too peer your article.
    Thanks a lot and I’m having a look forward to touch you.
    Will you please drop me a mail?

    my website psychic reading

  35. My partner and I stujmbled over here from a difcferent
    website and thought I might as well check things out.
    I like what I see so i am just following you. Look forward to looking over your web page for a second time.

    Stop by my weblog: cheap articles for seo

  36. Hi there to every one, it’s genuinely a nice for me to pay a quick
    visit this website, it includes helpful Information.

    Chwck out my weblog :: article writer for hire, article writer blog, best article writer

  37. explosive says:

    Hello! Someone in my Facebook group shared tis site with us so I came to cheeck it out.
    I’m definitely loving thhe information. I’m book-marking and will
    be tweeting this to my followers! Wonderful blpg
    and amazing design and style.

    my website explosive

Leave a Reply

Twitter Tweet This

54 Trackbacks

  1. swhitley (Shannon Whitley)

    Twitter Comment


    Twitter oAuth with .NET example code [New Post] – [link to post]

    – Posted using Chat Catcher

  2. akvalley (Anthony K. Valley)

    Twitter Comment


    @swhitley Thanks for the .NET sample code for Twitter oAuth [link to post]. I’ll use it to fix a PowerShell script I found.

    – Posted using Chat Catcher

  3. akvalley (Anthony K. Valley ©)

    FriendFeed Comment


    Twi… [link to post]

    – Posted using Chat Catcher

  4. cavalierandy (Randy Dillon)

    Twitter Comment


    Twitter oAuth with .NET [via FAQ] [link to post]

    – Posted using Chat Catcher

  5. send2moran (send2moran)

    Twitter Comment


    @gromer, try this class – [link to post] the important line is : oAuth.AccessTokenGet(Request["oauth_token"]);

    – Posted using Chat Catcher

  6. moomerman (Richard Taylor)

    Twitter Comment


    @aroxo its a couple of hours if you’ve already got a decent oauth lib to hand [link to post]

    – Posted using Chat Catcher

  7. ninjamonk (Darren Stuart)

    Twitter Comment


    working on an oAuth setup for .net and twitter, this helps [link to post]

    – Posted using Chat Catcher

  8. zerophyte (Cian H)

    Twitter Comment


    Reading a few things about twitter’s OAuth system – nothing new, just throught the api wiki – .NET example code : [link to post]

    – Posted using Chat Catcher

  9. SteveHolstad (Steve Holstad)

    Twitter Comment


    Excellent .NET Twitter oAuth class by @swhitley [link to post] Community dev at it’s best.

    – Posted using Chat Catcher

  10. Twitter OAuth in C# | Die In A Hole

    [...] one example on the tubes (linked from Twitter’s OAuth wiki page), to Shannon Whitley’s blog post at Voice of Tech, where he explains how he did OAuth for My Tweeple, based on Eran Sandler’s [...]

  11. How to update on Twitter account from code?

    [...] Was this link no use? Twitter oAuth with .NET | Shannon Whitley [...]

  12. Jeffbrown711 (Jeff Brown)

    Twitter Comment


    @ardalis u have any working snipits of something like this? [link to post]

    Posted using Chat Catcher

  13. Jeffbrown711 (Jeff Brown)

    Twitter Comment


    @ardalis looking to authenticate via oauth – missing something that is not allowing this to run [link to post]

    Posted using Chat Catcher

  14. ardalis (Steve Smith)

    Twitter Comment


    @Jeffbrown711 you just want some code that talks to twitter’s API in C#, or what?

    Posted using Chat Catcher

  15. Jeffbrown711 (Jeff Brown)

    Twitter Comment


    @swhitley where is the latest working version of [link to post]
    – i am unable; to get this to work. thks

    Posted using Chat Catcher

  16. swhitley (Shannon Whitley)

    Twitter Comment


    @Jeffbrown711 E-mail me and maybe I can help with specifics.

    Posted using Chat Catcher

  17. swhitley (Shannon Whitley)

    Twitter Comment


    @Jeffbrown711 I believe this code still works: http://voiceoftech.com/downloads/oauthtwitterexamplenet.zip

    Posted using Chat Catcher

  18. mchid (mark chidlow)

    Twitter Comment


    oh the joys of oAuth .NET at [link to post]

    Posted using Chat Catcher

  19. mariusdima (md)

    Twitter Comment


    Hei! Twitter oAuth with .NET [link to post]

    Posted using Chat Catcher

  20. docblop (Mike Schaefer)

    Twitter Comment


    @stuartmanning there’s an oauth implementation for .net already. no need to reinvent the wheel. [link to post]

    Posted using Chat Catcher

  21. stuartmanning (Stuart Manning)

    Twitter Comment


    @docblop and it is ‘often’ used in CodePlex.com OAUTH contribute projects :) *great link*

    Posted using Chat Catcher

  22. stuartmanning (Stuart Manning)

    Twitter Comment


    @docblop thanks =) there’s a ‘little’ more to do than just that example.. however it has ‘inspired’ alot of other to take this forward

    Posted using Chat Catcher

  23. docblop (Mike Schaefer)

    Twitter Comment


    @stuartmanning ok, just thought I’d point it out, but you obviously have it covered. Have used it and it works well for me. cheers ;)

    Posted using Chat Catcher

  24. stuartmanning (Stuart Manning)

    Twitter Comment


    @docblop you too sir =) it ‘very easy’ to implement :: there is the 1.1 standard etc and REST =) all good, and nice to meet you

    Posted using Chat Catcher

  25. prakash1979 (prakash)

    Twitter Comment


    [link to post] via @addthis

    Posted using Chat Catcher

  26. chridam (Chris Dambamuromo)

    Twitter Comment


    Twitter oAuth with .NET [link to post] via @addthis

    Posted using Chat Catcher

  27. ahmd (ahmd)

    Twitter Comment


    [link to post]

    Posted using Chat Catcher

  28. MichaelApproved (Michael Khalili)

    Twitter Comment


    @BrandonWatson Recently setup OAuth with [link to post] and username/pass with Yedda http://bit.ly/10NPEI what you trying to do?

    Posted using Chat Catcher

  29. Test Message | Hidden Treasures Of . Net

    [...] [...]

  30. jdmullin (J.D. Mullin)

    Twitter Comment


    @aarnott I started w Shannon Whitley’s, then modified it to be used in a WinForms app instead of an ASP.NET application. [link to post]

    Posted using Chat Catcher

  31. dixzan (Antonio Torres)

    Twitter Comment


    @lhchavez estoy aprendiendo como registrar mi API para consumir todos los servicios de Twitter. Se llama oAuth. [link to post].

    Posted using Chat Catcher

  32. lhchavez (lhchavez)

    Twitter Comment


    @dixzan aaah el oAuth… tuvieron broncas de seguridad con eso cuando lo sacaron por primera vez :P

    Posted using Chat Catcher

  33. GameTree » Blog Archive » Coding the Tweet, Redux

    [...] code is still using Eran Sandler and Shannon Whitley’s oAuth/Twitter library but with additional changes to support the new PIN mechanism. If you have visions of .NET Twitter [...]

  34. +60 librerias .net que todo desarrollador debería conocer « Hablando de web Desarrollo ágil de web en php, asp.net, javascript…

    [...] Whitley ofrece este ejemplo: Code | Live [...]

  35. Twitter oAuth with .NET for the Desktop | Shannon Whitley

    [...] hope people have benefitted from my example application for Twitter oAuth in .NET.  Occasionally someone will leave my Twitter name in the sample post and it pops up in my [...]

  36. Software Creations - Orn Kristjansson · #swBoulder 2010

    [...] on that, now I know how that works. As we decided to use .net to code, I found code to reuse from .Net solution by Shannon Whitley [...]

  37. edenics (Daniel David)

    Twitter Comment


    “Twitter oAuth with .NET” (Shannon Whitley) [link to post] – a good article

    Posted using Chat Catcher

  38. yiyul00 (Yuri Yi)

    Twitter Comment


    Twitter oAuth with .NET (Shannon Whitley) [link to post]

    Posted using Chat Catcher

  39. Twitter oAuth with .NET | alessio ricco

    [...] Twitter oAuth with .NET | Shannon Whitley. Se condividi, condividilo: Codice   oAuth, twitter      Using ASP.Net [...]

  40. Create Simple Twitter client with .Net « #Just Another Place To Stop By

    [...] about handilng OAuth in .Net. There’re several library to do this one. I found a nice blog by Shannon Whitley with example how we dealing with OAuth in .Net. You can start from [...]

  41. 60+ .NET libraries every developer should know about. | Webdistortion

    [...] Whitley offers this example: Code | Live [...]

  42. Twitter e a mudança para o oAuth « Soft Chill

    [...] utilizar o código postado por Shannon Whitley com algumas correções sugeridas pelo Stephen [...]

  43. Twitter Authentication going to break.. |

    [...] method (more info). That is bad news. I don’t know how to program or use that. There are .NET examples available. So it looks like we’ll have to stop using the WGET. Anyone? See the [...]

  44. Twitter oAuth with .NET | Shannon Whitley - Mustafa Kipergil - Mustafa Kipergil

    [...] http://www.voiceoftech.com/swhitley/?p=681 June 30, 2011 at 07:00AM No Comments » Posted in Uncategorized [...]

  45. O.R. and social networking: Twitter, Solver Foundation and MIP « Nathan Brixius

    [...] is called OAuth. Shannon Whitley wrote a nice OAuth package for .Net and posted it on his blog here. Go grab that and put it in your App_Code directory. I changed the namespace to [...]

  46. O.R. and social networking: A Solver Foundation MIP model to suggest Twitter followers « Nathan Brixius

    [...] is called OAuth. Shannon Whitley wrote a nice OAuth package for .Net and posted it on his blog here. Go grab that and put it in your App_Code directory. I changed the namespace to [...]

  47. AuthPack Provides .NET oAuth for Twitter, Facebook, LinkedIn, and Google | Shannon Whitley

    [...] I’ve published a project on GitHub that includes examples for authenticating users with some of the major social sites. LinkedIn and Twitter have very similar oAuth implementations so I was able to leverage all of my earlier Twitter .NET oAuth work. [...]

  48. Twitter Authentication going to break.. | Domoticaworld.com

    [...] method (more info). That is bad news. I don’t know how to program or use that. There are .NET examples available. So it looks like we’ll have to stop using the WGET. Anyone? See the [...]

  49. Sign into SharePoint 2010 with Facebook using a custom STS | Microsoft Enterprise Technologies

    [...] and will be integrated into our custom STS. It should be mentioned that this class is based on work done in 2009 by Shannon Whitley. Gotta give credit where credit is due. [...]

  50. (Twitter OAuth) How do you extract the user data from the xml and send it to a string?

    [...] http://www.voiceoftech.com/swhitley/index.php/2009/03/twitter-oauth-with-net/ [...]

  51. Twitter api + OAuth 'random' 401 error | Question and answer

    [...] the OAuth exemple code from http://www.voiceoftech.com/swhitley/index.php/2009/03/twitter-oauth-with-net/ [...]

  52. 60+ .NET libraries every developer should know about. - Dg3World

    [...] Whitley offers this example: Code | Live [...]

  53. Coding the Tweet, Redux | Coding the Wheel

    [...] code is still using Eran Sandler and Shannon Whitley’s oAuth/Twitter library but with additional changes to support the new PIN mechanism. If you have visions of .NET Twitter [...]

  54. Coding the Tweet: Building a Custom Branded Twitter Application | Coding the Wheel

    [...] That’s really all there is to it. You now have a custom branded (if somewhat bare-bones) Twitter client which will tag each of your tweets with your URL of choice. The above code can easily be expanded to provide additional functionality or even turned into a full-fledged Twitter client. It can also be very easily converted to a web-based paradigm. [...]