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

Commented Unassigned: SetCredentials Invalid / Expire [2326]

$
0
0
Hi, I just did a simple test if my code works:

```
TwitterCredentials.SetCredentials("@CurrentPage.twitterAccessToken", "@CurrentPage.twitterAccessTokenSecret", "@CurrentPage.twitterConsumerKey", "@CurrentPage.twitterConsumerSecret");

// Display tweets
//var tweets = Timeline.GetHomeTimeline();
//var user = Tweetinvi.User.GetLoggedUser();

var lastException = ExceptionHandler.GetLastException();

@lastException
```

and the exception i got was:

--- Date : 7/20/2014 7:26:35 AM URL : https://api.twitter.com/1.1/account/verify_credentials.json Code : 401 Error documentation description : Invalid or expired token (89)

I have regenerated the access / consumer keys on twitter but still got the same error. Can you please help what I'm doing wrong?
Comments: ** Comment from web user: linvi **

Would you please let me know if the error still occurs, the Twitter API sometimes have issues with Token validation for few hours.

If it still does not work, please go on [https://apigee.com/console/twitter](https://apigee.com/console/twitter) and let me know if you can use the API with the same Tokens.

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>