Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Webpage taking forever to load

$
0
0
I'm building a webpage to show the time line of some twitter account and for now to display it in a label
the problem is when I use the code under in the page load the browser keep in the waiting status and never load the page I would really llike to know what is wrong and thanks in advance
 string consumerKey = //consumer key
        string consumerKeySecret = //consumer key secret 
        string accessToken = //access token 
        string accessTokenSecret = //access token secret 
        TwitterCredentials.Credentials = TwitterCredentials.CreateCredentials(accessToken, accessTokenSecret, consumerKey, consumerKeySecret);
        var sampleStream = Stream.CreateSampleStream();
        sampleStream.TweetReceived += (sender1, args) => { Label1.Text = (args.Tweet.Text); };
        sampleStream.StartStream();

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>