0

Possible Duplicate:
Is there a way to get an user's email ID after verifying her Twitter identity using OAuth?

I've pretty much got OpenID working using the DotNetOpenAuth library. Now I would like to get the email.

 public ActionResult OAuth()
    {
 var twitter = new WebConsumer(TwitterConsumer.ServiceDescription, TwitterTokenManager);
        AuthorizedTokenResponse accessTokenResponse = twitter.ProcessUserAuthorization();
        if (accessTokenResponse != null)
        {
            string accessToken = accessTokenResponse.AccessToken;
            string username = accessTokenResponse.ExtraData["screen_name"];
            // email goes here ??
            CreateAuthCookie(username, accessToken);
        }
        else
        {
            return RedirectToAction("LogOn");
        }

        return RedirectToAction("Index", "Home");
Community
  • 1
  • 1
Maged Samaan
  • 1,742
  • 2
  • 19
  • 39

1 Answers1

1

Sorry it's not possible to get the users Email address from Twitter.

Take a look at the following

Is there a way to get an user's email ID after verifying his/her Twitter identity using OAuth?

Community
  • 1
  • 1
Brian Dishaw
  • 5,767
  • 34
  • 49