This project has moved and is read-only. For the latest updates, please go here.

Issue getting twitter profile image

Apr 13, 2014 at 11:34 PM
I am trying to get the profile image from twitter but I am getting timeouterror instead
using (var ctx = new TwitterContext(auth))

                var users =
                from tweet in ctx.User
                where tweet.Type == UserType.Show &&
                  tweet.ScreenName == System.Web.HttpContext.Current.User.Identity.GetUserName() 
                select tweet;

            var user = users.SingleOrDefault();   // I think this line throws the timeout.

       //         url = url.Replace("_normal", "");

            profIm.Src = user.ProfileImageUrl;
Any help will be appreciated.