Twitter embeds have broken

:tada: Fantastic! Twitter removing the opengraph tags was so weird!

7 Likes

Fixed via:

https://github.com/discourse/onebox/commit/ea8a19bf24ddc0400a521596955f902681729eff

Tested locally and the Twitter onebox looks okay. :ok_hand:

7 Likes

I’ve setup Twitter oath logins and rich embeds and the Twitter Onebox is still not working for me. I’m on the latest version of Discourse (2.6.0.beta1) and plugins (cakeday, whos-online, retort, spoiler_alert).

For example, this tweet URL is not previewing. And it appears it’s not working on the meta site as well.

https://twitter.com/JWPSports/status/1277254012132298752?s=20

Is there something else I need to setup? Do I need to manually update Onebox or is that already in the current release as it appeared to have been merged a couple of weeks ago?

Any guidance would be appreciate!

4 Likes

@techAPJ Sorry, I forgot to reply to your post to ensure you were notified. Is there confirmation from the team that Onebox is still broken for Twitter URLs or is it something with my configuration?

2 Likes

Arpit is getting married at the moment so he is a bit busy :wink:

We are looking at this and will reply soon.

7 Likes

Congratulations Arpit. Ty Jeff for the update! :+1:

6 Likes

Meta has been blocked by Twitter for generating too many requests. Try contacting Twitter support?

3 Likes

Twitter Onebox’ing is working now on our site (without any updates to the software). Quick check if it’s working here on meta.

Boom! Fixed!

Here are the commands to rebake the old twitter posts if you want:

cd /var/discourse
./launcher enter app
rake posts:rebake_match["twitter"]
7 Likes