# Twitter Native Embed

**URL:** https://meta.discourse.org/t/twitter-native-embed/261792
**Category:** Theme component
**Created:** [April 15, 2023, 12:35pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792 "2023-04-15T12:35:49Z")
**Posts on this page:** 8
**Page:** 6

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [December 20, 2025, 7:31pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792/101 "2025-12-20T19:31:59Z")

</div>

btw, i don’t know how busy your forum is or how often x/twitter oneboxes are posted, but the basic free twitter plan does work for default oneboxes - it just rate limits to about 1 onebox request per 15 minutes. i have it running on a relatively busy forum and it only seems to limit when people try to post more than one onebox link in a post.

---

<div class="post-metadata">

### Author: ![ZeroDean](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zerodean/32/527869_2.png) [@ZeroDean](https://meta.discourse.org/u/ZeroDean)
#### Post date: [December 21, 2025, 4:30pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792/102 "2025-12-21T16:30:56Z")

</div>

> [@Lilly](#):
>
> then enable `Block onebox on redirect`

Unfortunately, i just discovered this stops a lot of YouTube (ie [https://youtu.be/](https://youtu.be/)) from being embedded because the links redirect to YouTube.

People post far more YouTube links than they ever post X posts. So I’ve disabled for now and will simply edit [x.com](http://x.com) → [twitter.com](http://twitter.com) for now.

---

<div class="post-metadata">

### Author: ![ZeroDean](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zerodean/32/527869_2.png) [@ZeroDean](https://meta.discourse.org/u/ZeroDean)
#### Post date: [December 21, 2025, 4:33pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792/103 "2025-12-21T16:33:38Z")

</div>

> [@Lilly](#):
>
> how often x/twitter oneboxes are posted, but the basic free twitter plan does work for default oneboxes

We very rarely have any x/twitter posts mentioned. And [Twitter.com](http://Twitter.com) oneboxes do work, but [X.com](http://X.com) do not.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [December 21, 2025, 5:59pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792/104 "2025-12-21T17:59:13Z")

</div>

> [@ZeroDean](#):
>
> And [Twitter.com](http://Twitter.com) oneboxes do work, but [X.com](http://X.com) do not.

are you sure? i don’t mean this component, i mean the native onebox using a twitter developer free plan api token and with this component disabled. you say you are being hosted - they should be able to set up the default oneboxing like that exists here on Meta.

> [@Configuring X login and rich embeds for Discourse](https://meta.discourse.org/t/configuring-twitter-login-and-rich-embeds-for-discourse/13395#p-43411-x-configuration-1):
>
> bookmark This guide explains how to set up Twitter login and rich embeds for your Discourse forum. person_raising_hand Required user level: Administrator warning In order for rich embeds to work properly, a Basic plan or higher for X Dev is mandatory. Rich embeds will not work with the Free X Dev plan. X Configuration Go to the [Developer Portal](https://developer.twitter.com/en/portal/projects-and-apps) on X. Choose between a Free, Basic, or Pro X Dev plan and complete the developer agreement and policy requirements. After completing …

i have the rich x/twitter embedding for free on 2 different self hosted sites. i use this component when the x/twitter api breaks for whatever reason and just toggle it on and off as needed then.

---

<div class="post-metadata">

### Author: ![hipp0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hipp0/32/537433_2.png) [@hipp0](https://meta.discourse.org/u/hipp0)
#### Post date: [January 10, 2026, 5:05am UTC](https://meta.discourse.org/t/twitter-native-embed/261792/106 "2026-01-10T05:05:40Z")

</div>

> [@Lilly](#):
>
> i have the rich x/twitter embedding for free on 2 different self hosted sites. i use this component when the x/twitter api breaks for whatever reason and just toggle it on and off as needed then.

I set up a developer free account for X. I am wondering how you get a Twitter one box for embedding?

I have the Native Twitter Embed component working fine, but I am wanting to post in dark mode.

---

<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: [March 3, 2026, 8:36am UTC](https://meta.discourse.org/t/twitter-native-embed/261792/109 "2026-03-03T08:36:17Z")

</div>

It seems that on some recent Discourse versions, disabling Twitter/X oneboxes does not work well.  
Also, this theme component does not work correctly on already existing oneboxes.

I have added some functionality that, in addition to replacing the bare links with a native embed, also looks for Twitter oneboxes, and then does the same thing.

That means there is no need to disable oneboxing or rebuild old posts any more.

PR here [Feature: support existing oneboxes by communiteq · Pull Request #1 · Lhcfl/discourse-twitter-native-embed · GitHub](https://github.com/Lhcfl/discourse-twitter-native-embed/pull/1)

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [March 30, 2026, 11:27am UTC](https://meta.discourse.org/t/twitter-native-embed/261792/110 "2026-03-30T11:27:54Z")

</div>

Thank you! Sorry for the one-month delay. I was hospitalized and confined to bed at that time, and I have just been discharged and seen this PR. Merged!

---

<div class="post-metadata">

### Author: ![jazznutUVA](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jazznutUVA](https://meta.discourse.org/u/jazznutUVA)
#### Post date: [September 8, 2026, 6:11pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792/111 "2026-09-08T18:11:23Z")

</div>

Hi All… anyone having issues with this plug-in? It appears something broke and it is not showing embeds again either with [x.com](http://x.com) or [twitter.com](http://twitter.com). Was there a new Discourse version that broke it?

[Previous page](https://meta.discourse.org/t/twitter-native-embed/261792.md?page=5)
