I have a twitter bot that uses LinqtoTwitter it works perfectly fine but when i start it after almost 20 reply(comment) on other users tweets the token gets expired without any warning. I changed the intervals from every 5 min to every 10 minutes still the tokens get disappeared and i need to generate a new token!!
This app sends product links to users based on their tweets it is web based and runs background thread so once it is running it is working in the background even if closing the web page How can I fix this issue?! And now the app got suspended :( not the user tho! Here is the auth code:
private static string consumer_Key = ConfigurationManager.AppSettings["consumerkey"];
private static string consumer_Key_Secret = ConfigurationManager.AppSettings["consumersecret"];
private static string access_Token = ConfigurationManager.AppSettings["accessToken"];
private static string access_Token_Secret = ConfigurationManager.AppSettings["accessTokenSecret"];
static SingleUserAuthorizer auth = new SingleUserAuthorizer
{
CredentialStore = new SingleUserInMemoryCredentialStore
{
ConsumerKey = consumer_Key,
ConsumerSecret = consumer_Key_Secret,
AccessToken = access_Token,
AccessTokenSecret = access_Token_Secret,
}
};