title: Xamarin.Auth with Twitter
body: <p>I am trying to implement login with Facebook and Twitter. I got it working with Facebook but don't know how to do it with Twitter. Are there any examples? My Facebook implementation is like this:</p>
  
  <pre><code>var auth = new OAuth2Authenticator(
      clientId: "*****************",
      scope: "email",
      authorizeUrl: new System.Uri("https://m.facebook.com/dialog/oauth/"),
      redirectUrl: new System.Uri("http://www.facebook.com/connect/login_success.html"));
  
  StartActivity(auth.GetUI(this));
  
  auth.Completed += (senderFb, eventArgs) =&gt;
  {
      if (eventArgs.IsAuthenticated)
      {
          AccountStore.Create(this).Save(eventArgs.Account, "Facebook");
  
          // Now that we're logged in, make a OAuth2 request to get the user's info.
          var request = new OAuth2Request("GET", new System.Uri("https://graph.facebook.com/me"), null, eventArgs.Account);
  
          request.GetResponseAsync().ContinueWith(t =&gt;
          {
              if (!t.IsFaulted &amp;&amp; !t.IsCanceled)
              {
                  var obj = JsonValue.Parse(t.Result.GetResponseText());
                  if (obj != null)
                  {
                      var user = new UserProfile
                          {
                              FirstName = obj["first_name"],
                              LastName = obj["last_name"],
                              FacebookProfileLink = obj["link"],
                              FacebookToken = eventArgs.Account.Properties["access_token"],
                              Gender = obj["gender"] == "female" ? "Female" : "Male",
                              EmailAddress = obj["email"],
                              DisplayName = obj["name"],
                              Name = obj["name"],
                              LoginName = obj["email"]
                          };
                      SignUpUser(user);
                  }
              }
          }, uiScheduler);
      }
  };
  </code></pre>