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

New Post: Web Request Failed

$
0
0
Ok,

So if you are able to access to your app it implies that your credentials are correct.
Could you please have a look at the following code and verify that you enter the correct format of the CallbackURL.
The callback url is an URL that contains both and OAuthToken and an OAuthVerifier as the following example:

https://tweetinvi.codeplex.com/?oauth_token=aEXdqtdAZCSSlcYwiNcqhwZ93TO6Hh2Z&oauth_verifier=C0tAbhyTK74VnVHfgVzK1minL4adqde6e
var applicationCredentials = CredentialsCreator.GenerateApplicationCredentials(consumerKey, consumerSecret);
var url = CredentialsCreator.GetAuthorizationURLForCallback(applicationCredentials, "https://tweetinvi.codeplex.com");
Console.WriteLine("Go on : {0}", url);
Console.WriteLine("When redirected to your website copy and paste the URL: ");

// Enter a value like: https://tweeetinvi.codeplex.com?oauth_token={tokenValue}&oauth_verifier={verifierValue}var callbackURL = Console.ReadLine();

// Here we provide the entire URL where the user has been redirectedvar newCredentials = CredentialsCreator.GetCredentialsFromCallbackURL(callbackURL, applicationCredentials);
Console.WriteLine("Access Token = {0}", newCredentials.AccessToken);
Console.WriteLine("Access Token Secret = {0}", newCredentials.AccessTokenSecret);

return newCredentials;
Please check this as this code is working properly for me.
Cheers,
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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