tweetinvi: Unable to use Tweet.GetTweet to get a tweet using Application Only credentials in a UWP application
Hi,
I’m using this library as a way of adding an inline tweet viewer in my UWP application, however my code to fetch a tweet no longer appears to work at least on my machines.
I’ve been using this code to reproduce the issue:
try
{
credentials = Auth.SetApplicationOnlyCredentials("", "", true);
var rateLimits = RateLimit.GetCurrentCredentialsRateLimits();
Console.WriteLine(credentials);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
}
var tweet = Tweet.GetTweet(874866500083044353);
Console.WriteLine(tweet);
var latestException = ExceptionHandler.GetLastException();
Console.WriteLine("The following error occured : '{0}'", latestException.TwitterDescription);
When used in a .NET Core application, this code runs fine, however it fails to fetch the tweet when ran within a UWP Application
Any help is appreciated!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (9 by maintainers)
Hello I am currently migrating Tweetinvi for PCL to .NETStandard 1.3. If you have a problem this might solve it, so could you please wait few days as I expect to release this new version very soon.