c# - how can i get twitter email with dotnetopenauth? -
possible duplicate:
is there way user's email id after verifying twitter identity using oauth?
i've pretty got openid working using dotnetopenauth library. 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");
sorry it's not possible users email address twitter.
take @ following
is there way user's email id after verifying his/her twitter identity using oauth?
Comments
Post a Comment