# Twitter embeds have broken

**URL:** https://meta.discourse.org/t/twitter-embeds-have-broken/153568
**Category:** Support
**Created:** [June 2, 2020, 1:36pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568 "2020-06-02T13:36:59Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Incan](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@Incan](https://meta.discourse.org/u/Incan)
#### Post date: [June 2, 2020, 1:36pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/1 "2020-06-02T13:36:59Z")

</div>

Hello, a few days ago on our Discourse fourm twitter embeds have borken, leading to issues of having to click every tweet and not being able to see a summary first.

They currently look like this  
 ![image](https://global.discourse-cdn.com/meta/original/3X/d/f/df122f80923a7d9146de30ef5e074b03ae941188.png)

What is the issue if anyone knows and what is the fix?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [June 2, 2020, 1:52pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/2 "2020-06-02T13:52:06Z")

</div>

My guess is that [this](https://www.digitalinformationworld.com/2020/05/twitter-issues-warning-to-shut-the-site-s-legacy-theme-once-and-for-all-in-june-2020.html) has to do with this issue.

> The company is shutting down its original site legacy theme version on the 1st of June 2020

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [June 2, 2020, 3:01pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/3 "2020-06-02T15:01:06Z")

</div>

My site is experiencing this as well. As well as another one that I’m one.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [June 2, 2020, 3:10pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/4 "2020-06-02T15:10:43Z")

</div>

Trying one out:

> <https://twitter.com/discourse/status/1262893431564664832?s=19>

Can you find an example of a tweet that fails to embed on [try.discourse.org](http://try.discourse.org)?

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [June 2, 2020, 3:32pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/5 "2020-06-02T15:32:21Z")

</div>

This is what would not render on my site:

> <https://twitter.com/Brett_McMurphy/status/1267635034586046469>

I’m on the latest release:

 ![Screen Shot 2020-06-02 at 11.34.00 AM](https://global.discourse-cdn.com/meta/original/3X/d/1/d15997523fcb70835751d54e242c566e8510a519.png)

Link to post where it is not rendering:  
[https://forums.agent49.net/t/d1-conference-adjustments-sports-being-canceled-thread/409/91?u=agent49](https://forums.agent49.net/t/d1-conference-adjustments-sports-being-canceled-thread/409/91?u=agent49)

---

<div class="post-metadata">

### Author: ![Incan](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@Incan](https://meta.discourse.org/u/Incan)
#### Post date: [June 2, 2020, 3:33pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/6 "2020-06-02T15:33:18Z")

</div>

This one, the one you linked, has the same issue on the site I use.

> <https://twitter.com/PlayVALORANT/status/1267838149486505984>

Here’s another example of one that is embeding fine here but not our board it seems.

Checking the admin pannel, we are not on the latest version, was there any changes between these two versions would should lead to a fix?

 ![](https://global.discourse-cdn.com/meta/original/3X/9/3/932feb32a86c3616187be3a056f23ae9e6678dcf.png)

---

<div class="post-metadata">

### Author: ![fuzzyk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuzzyk/32/129208_2.png) [@fuzzyk](https://meta.discourse.org/u/fuzzyk)
#### Post date: [June 2, 2020, 3:38pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/7 "2020-06-02T15:38:46Z")

</div>

All the Open Graph tags are missing from Twitter currently, except one:

```html
<meta property="og:site_name" content="Twitter" />

```

I’m afraid there is nothing that can be done except maybe using some mysterious API or something, specifically for Twitter Oneboxes.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 2, 2020, 3:44pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/8 "2020-06-02T15:44:17Z")

</div>

Looks like Twitter indeed removed the OpenGraph tags. If you [enable rich embeds](https://meta.discourse.org/t/configuring-twitter-login-and-rich-embeds-for-discourse/13395) on your site we have a way to bypass that.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [June 2, 2020, 3:56pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/9 "2020-06-02T15:56:57Z")

</div>

Confirmed via [http://www.opengraphtester.com/test/:](http://www.opengraphtester.com/test/:)

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/d/dd4c41c74991a06b55721bc17eed0af4c41f2431.png)

---

<div class="post-metadata">

### Author: ![Incan](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@Incan](https://meta.discourse.org/u/Incan)
#### Post date: [June 2, 2020, 3:57pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/10 "2020-06-02T15:57:34Z")

</div>

Thanks, will ask the admin to test this for us when he gets some time today.

---

<div class="post-metadata">

### Author: ![Incan](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@Incan](https://meta.discourse.org/u/Incan)
#### Post date: [June 2, 2020, 6:26pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/11 "2020-06-02T18:26:01Z")

</div>

Thank you, it seems to have worked. Only issues is video aren’t embedding, but you can still the tweet author and description so that’s fine.

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [June 3, 2020, 12:49pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/12 "2020-06-03T12:49:28Z")

</div>

> [@Falco](#):
>
> Looks like Twitter indeed removed the OpenGraph tags. If you [enable rich embeds](https://meta.discourse.org/t/configuring-twitter-login-and-rich-embeds-for-discourse/13395) on your site we have a way to bypass that.

Thank you, that worked for me as well.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 3, 2020, 7:05pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/13 "2020-06-03T19:05:44Z")

</div>

Even with the existing workaround, IMO it makes sense to add some custom onebox rules so it doesn’t look so broken out of the box.

---

<div class="post-metadata">

### Author: ![JonLumb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonlumb/32/67023_2.png) [@JonLumb](https://meta.discourse.org/u/JonLumb)
#### Post date: [June 3, 2020, 7:18pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/14 "2020-06-03T19:18:57Z")

</div>

I’ve tried implementing the above, but still just get the brackets being displayed.

---

<div class="post-metadata">

### Author: ![rldml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rldml/32/155759_2.png) [@rldml](https://meta.discourse.org/u/rldml)
#### Post date: [June 3, 2020, 7:40pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/15 "2020-06-03T19:40:01Z")

</div>

Same for me. The workaround doesn’t work for my forum.

---

<div class="post-metadata">

### Author: ![JonLumb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonlumb/32/67023_2.png) [@JonLumb](https://meta.discourse.org/u/JonLumb)
#### Post date: [June 3, 2020, 7:54pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/16 "2020-06-03T19:54:52Z")

</div>

Ah, it’s now working except for a few historic links. I’m assuming something has been cached by the forum, I’ll see if I can find a way to recache them.

---

<div class="post-metadata">

### Author: ![rldml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rldml/32/155759_2.png) [@rldml](https://meta.discourse.org/u/rldml)
#### Post date: [June 3, 2020, 7:57pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/17 "2020-06-03T19:57:19Z")

</div>

Same here… Patience is something i need to learn… 😃

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 4, 2020, 6:30pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/25 "2020-06-04T18:30:29Z")

</div>

I posted about this change in the Twitter forums, let’s see if anything useful comes up

> **[Twitter removed OpenGraph tags from server rendered tweet page?](https://devcommunity.x.com/t/twitter-removed-opengraph-tags-from-server-rendered-tweet-page/138473?u=rafael_falco)**
>
> Retrieving the HTML document of a single tweet, let’s say https://twitter.com/TwitterSupport/status/1267105441278033920 would give back a response that included in the document all the usual OpenGraph tags, like og:title and og:description, which...

I believe this change was to save rendering time on their servers, as the tags are now only filled by React during client render. This makes their HTML static, allowing they to adopt [Architecture &nbsp;|&nbsp; web.dev](https://developers.google.com/web/fundamentals/architecture/app-shell), which makes webapps render a lot faster.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 10, 2020, 5:05pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/31 "2020-06-10T17:05:28Z")

</div>

Hey we have a workaround!

```bash
# standard call
➜ ~ curl https://twitter.com/TwitterSupport/status/1267105441278033920 -s | grep og:
<meta property="og:site_name" content="Twitter" />

# special user agent
➜ ~ curl https://twitter.com/TwitterSupport/status/1267105441278033920 -s -H "User-Agent: DiscourseBot/1.0" | grep og:
    <meta property="og:type" content="article">
    <meta property="og:url" content="https://twitter.com/TwitterSupport/status/1267105441278033920">
    <meta property="og:title" content="Twitter Support on Twitter">
    <meta property="og:image" content="https://pbs.twimg.com/profile_images/1266884366279471105/OTps6MBS_400x400.jpg">
    <meta property="og:description" content="“To follow what’s happening in real time, tap the ✨ located at the top right of your Home timeline to change from seeing top Tweets to latest Tweets first.”">
    <meta property="og:site_name" content="Twitter">

```

Is this something we can use @techAPJ?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [June 10, 2020, 5:10pm UTC](https://meta.discourse.org/t/twitter-embeds-have-broken/153568/32 "2020-06-10T17:10:56Z")

</div>

Definitely, that helps a lot! 😍

I’ll update Twitter onebox engine first thing tomorrow. 📝

[Next page](https://meta.discourse.org/t/twitter-embeds-have-broken/153568.md?page=2)
