Quantcast
Viewing all articles
Browse latest Browse all 4126

New Post: Cannot send a Tweet

Hi Linvi,

I've extended your example as below, but I never get a valid response when trying to send a Tweet. There don't seem t be any errors anywhere, is there any way to track down additional information as to where the problem may lie?

I've tried this both with and without the SetCredentials call.

Many thanks,
Russell
// Consumer Key and Secret are specific to your application, you can get these on apps.twitter.com
            var applicationCredentials = 
                CredentialsCreator.GenerateApplicationCredentials(oauth_consumer_key, oauth_consumer_secret);

            var url = CredentialsCreator.GetAuthorizationURL(applicationCredentials);

            // Open the URL to authenticate yourself on Twitter
            Process.Start(url);
            Console.WriteLine("Please enter the captcha : ");
            var captcha = Console.ReadLine();

            // Here are the new credentials!
            var result = CredentialsCreator.GetCredentialsFromVerifierCode(captcha, applicationCredentials);


            Console.WriteLine(result.AccessTokenSecret);


            //TwitterCredentials.SetCredentials(applicationCredentials.AuthorizationKey, result.AccessTokenSecret, oauth_consumer_key, oauth_consumer_secret);

                var tweet = Tweetinvi
                    .Tweet
                    .PublishTweet("test status " + Guid.NewGuid());


                Console.WriteLine(tweet != null);

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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