Raja A

Raja A

  • NA
  • 438
  • 39.7k

Retrieve email from twitter c#

Jan 20 2016 3:41 AM
Hi,
          I cannot retrieve email from the following code from twitter, Anyone help me....
 
 
TwitterConnect.API_Key = "UPPeko0iaJGxOZbqQNHP2lyv1";
TwitterConnect.API_Secret = "WCqqWfRPr66nFt4ua87VttaQMlZceLRAMbVpzERq5pxn0IygM1";
if (!IsPostBack) if (!IsPostBack)
{
if (TwitterConnect.IsAuthorized)
{
TwitterConnect twitter = new TwitterConnect();
//LoggedIn User Twitter Profile Details
DataTable dt = twitter.FetchProfile();
imgProfile.ImageUrl = dt.Rows[0]["profile_image_url"].ToString();
lblName.Text = dt.Rows[0]["name"].ToString();
lblTwitterId.Text = dt.Rows[0]["Id"].ToString();
lblScreenName.Text = dt.Rows[0]["screen_name"].ToString();
lblEmail.Text = dt.Rows[0]["email"].ToString(); 
lblDescription.Text = dt.Rows[0]["description"].ToString();
lblTweets.Text = dt.Rows[0]["statuses_count"].ToString();
lblFollowers.Text = dt.Rows[0]["followers_count"].ToString();
lblFriends.Text = dt.Rows[0]["friends_count"].ToString();
lblFavorites.Text = dt.Rows[0]["favourites_count"].ToString();
lblLocation.Text = dt.Rows[0]["location"].ToString();
tblTwitter.Visible = true;
}

Answers (4)