Twitter links are no longer oneboxing

Having updated to latest this morning (3.1.0.beta5 ( 303fcf303c )), we’re finding that Twitter links are no longer oneboxing:

https://twitter.com/UKDroneClub/status/1670504740096974848

https://twitter.com/discourse/status/1671991935303598082

Also not working here on meta :confused:

3개의 좋아요

Thanks for the report, there are multiple possible issues here.

First, I think Twitter blocked getting tweet info via OpenGraph outright for all non-browser consumers (like bots and crawlers etc.). Multiple people in our team can’t get tweet oneboxes in Whatsapp, Telegram and other apps since a couple of days ago.

Second, last week they announced Deprecation of legacy access tiers in the Twitter API - Announcements - X Developers, for us that means that we can no longer get tweets from the /1.1/statuses/show route.

We added a fix for this yesterday by @jancernik FIX: Use Twitter API v2 for oneboxes and restore OpenGraph fallback (… · discourse/discourse@24c9053 · GitHub – that switches our code to use Twitter’s v2 API, which is the only remaining avenue for getting oneboxes. In our testing it works, but only if the API key is from a paid tier. I just checked, and it looks like here on meta we’re using a free tier API key (we’re working on a fix) and likely why it doesn’t work on your instance.

Note that Jan’s PR added OpenGraph fallback, but as he was working on it, Twitter blocked access to that too. There’s a very good chance that will never work (and we’ll remove the fallback code).

The bottom line is: without paying Twitter for API access, oneboxes might never work. It’s a sad state of affairs.

6개의 좋아요

Thanks for the insight and the very detailed reply @pmusaraj :clap: :bowing_man:

Isn’t it just :sigh: :confused:

2개의 좋아요

I just updated the API keys used on meta, and rebuilt the OP. Tweets now are embedded correctly here (and for clients in our hosting). The issues raised by the OP still apply to self-hosters though.

One alternative option here is to load native Twitter embeds, see this theme component.

4개의 좋아요

thank you for fixing this @pmusaraj - twitter embeds are working as expected on my forum now. :slight_smile:

3개의 좋아요

You mean, to use a paid-for version? :thinking:

1개의 좋아요

Yes, we use a paid tier on our hosting.

4개의 좋아요

Sadly that component doesn’t seem to work anymore either :confused:

Results in the same behaviour:

1개의 좋아요

Oh wait, sorry, looks like it does work, just not in the composer:

:scream:

1개의 좋아요

A few quick tests and this component seems to work great, even with embedded video:

https://twitter.com/MotoGP/status/1672173032930983936

Thanks @pmusaraj :smiley:

1개의 좋아요

Do you use the free or paid version?

1개의 좋아요

we are hosted by Discourse / CDCK and using the latest beta version

4개의 좋아요

9 posts were split to a new topic: Twitter oneboxes and links broken now that login is required

Further issues discussed at Twitter oneboxes and links broken now that login is required