question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use Tweet.GetTweet to get a tweet using Application Only credentials in a UWP application

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
linvicommented, Jun 14, 2017

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.

0reactions
linvicommented, Mar 24, 2018

Unfortunately I am closing it again. Please get back to me if you have more info.

Sorry about that.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found