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

New Post: Beginner - Help

$
0
0
Hi Luka,

I have not updated the version of TweetInvi I'm using in a while now, so how things work may have changed, but it's worth a shot atleast.

Remove this line
        TwitterCredentials.ApplicationCredentials = TwitterCredentials.CreateCredentials("xxxxx", "xxxxx", "xxxxx", "xxxxx");

and try building the app again, failing that move the line
        TwitterCredentials.ApplicationCredentials = TwitterCredentials.CreateCredentials("xxxxx", "xxxxx", "xxxxx", "xxxxx");
above
   TwitterCredentials.SetCredentials("xxxxx", "xxxxx", "xxxxx", "xxxxx");
So you'd want:
        TwitterCredentials.ApplicationCredentials = TwitterCredentials.CreateCredentials("xxxxx", "xxxxx", "xxxxx", "xxxxx");

        TwitterCredentials.SetCredentials("xxxxx", "xxxxx", "xxxxx", "xxxxx");


In my apps, I only need the .SetCredentials line, but if you require both I believe .CreateCredentials would need to be called before .SetCredentials. (You can't set something before it's been created)


Failing that could you post the error you're getting?

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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