Unable to use Tweet.GetTweet to get a tweet using Application Only credentials in a UWP application
See original GitHub issueHi,
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!
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
OAuth 2.0 App-Only (Bearer Token) | Docs
This means that the only requests you can make to a Twitter API must not require an authenticated user. With application-only authentication, you...
Read more >Accessing Twitter Data - Failed authentication with valid ...
I have checked that the credentials are being read by the app. They are valid - I use them to connect with another...
Read more >Twitter API Response Codes & Error Support
Get Twitter API response codes and error support through Twitter Developer here. ... The following steps apply to streaming endpoints only:.
Read more >Twitter Service - Windows Community Toolkit
The Twitter Service allows users to retrieve or publish data to Twitter.
Read more >Post status update app only authentication - Twitter API v2
My use case is NOT to tweet on behalf of a user but tweet an update ... and under “Step 2: Obtain an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Unfortunately I am closing it again. Please get back to me if you have more info.
Sorry about that.