Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter/X Embed Block Not Working. #96010

Open
paxblueribbon opened this issue Nov 3, 2024 · 31 comments
Open

Twitter/X Embed Block Not Working. #96010

paxblueribbon opened this issue Nov 3, 2024 · 31 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Interaction #] > 20 (Automated) interaction count label for better visibility. Please don't add these manualliy. [Platform] Atomic [Pri] High Address as soon as possible after BLOCKER issues [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Escalated to Product Ambassadors Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@paxblueribbon
Copy link

Quick summary

On some sites Twitter/X embeds don't work, when adding a new one I get "Sorry, this content could not be embedded."

Steps to reproduce

  1. Add a new Twitter block in Gutenberg.
  2. Paste the URL into the box.
  3. Click Embed

What you expected to happen

Site displays the tweet.

What actually happened

"Sorry, this content could not be embedded."

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

If the above answer is "Yes...", outline the workaround.

  • Get the embed code from the Tweet
  • Paste it into a Custom HTML block.

However this is only a partial workaround, as it doesn't fix previously posted Twitter/X embeds.

Platform (Simple and/or Atomic)

Atomic

Logs or notes

zd-8986491

@paxblueribbon paxblueribbon added [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Core Blocks Blocks that come with Gutenberg. [Product] WordPress.com All features accessible on and related to WordPress.com. [Type] Bug When a feature is broken and / or not performing as intended Needs triage Ticket needs to be triaged labels Nov 3, 2024
@github-actions github-actions bot added [Platform] Atomic [Pri] Normal Schedule for the next available opportuinity. labels Nov 3, 2024
@mauropereiira
Copy link

Another case here: zd-8960105

@lizswafford
Copy link

lizswafford commented Nov 4, 2024

8945481-zen

@khristiansnyder
Copy link

User wants updates on when this is working again: #8990777-zd-a8c

Copy link

github-actions bot commented Nov 4, 2024

Support References

This comment is automatically generated. Please do not edit it.

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Nov 4, 2024
@aisajib
Copy link

aisajib commented Nov 4, 2024

This was reported here as well: 8985064-zd-a8c

Quoting a relevant portion from the user's message:

i have to try several times to embed it and it seems working but after publish it, only a link appears

@elcristofue
Copy link

elcristofue commented Nov 5, 2024

This issue has also been reported here: 8989953-zd

@inaikem
Copy link
Contributor

inaikem commented Nov 5, 2024

This thread is being discussed in slack-C07RS1SCKBK

@inaikem inaikem moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Nov 5, 2024
@ricklabsdotn8
Copy link

8997955-zd

@ricklabsdotn8
Copy link

Workaround for Atomic sites would be using the manual embed feature from X:
Image

Alternatively, going to https://publish.twitter.com/#

@TeniCola
Copy link

TeniCola commented Nov 7, 2024

This has also been reported in 9006510-zd -- however, the user has a simple site, so the atomic workaround did not work as intended on the live site (only displays embed in editor view).

@rosepajaroja
Copy link

Another report here: 9009327-zen

@tanjoymor
Copy link

Another report here: 9017138-zd-a8c

The embed displays in the editor but converts to a link only on the live post.

Simple site.

@aisajib
Copy link

aisajib commented Nov 12, 2024

A user reported this on X here. -- 9021072-zd-a8c

@ktyfuller604
Copy link

Simple site - reported here 9040424-zd-a8c

@inaikem
Copy link
Contributor

inaikem commented Nov 19, 2024

Update via slack-C07RS1SCKBK
This issue isn't isolated to our platform and we have reached out to contacts at Twitter/X, but haven't had any response yet. We're hoping they will help us find a more permanent solution.

Currently, it may be possible the oEmbed cache is regenerated when a post is loaded by the author / an editor/admin. This means that if an embed is 'bad' on first load, a refresh or two of the post from the author (in the editor or frontend) can repopulate the embeds.

@inaikem
Copy link
Contributor

inaikem commented Nov 19, 2024

I also made Slack announcement with the above here: p1732003945715219-slack-CB0B2G43X

@Robertght
Copy link

9063095-zen

@github-actions github-actions bot added the [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. label Nov 20, 2024
@jorpdesigns
Copy link

jorpdesigns commented Nov 21, 2024

Reported in 9071401-zen

Shared workaround.

@Robertght Robertght added [Pri] High Address as soon as possible after BLOCKER issues Triaged To be used when issues have been triaged. and removed [Pri] Normal Schedule for the next available opportuinity. Needs triage Ticket needs to be triaged labels Nov 22, 2024
@Robertght
Copy link

Raising priority on this one.

@jordesign
Copy link
Contributor

Another report in 9083985-zd-a8c (Atomic Site). Shared workaround.

@aisajib
Copy link

aisajib commented Nov 26, 2024

Reported in 9084286-zd-a8c (via X).

9084356-zd-a8c

9088351-zd-a8c

9089207-zd-a8c

@ricklabsdotn8
Copy link

9082819-zd

@sanjeev00733
Copy link

9071401-zd

@TeniCola
Copy link

Another report in 9167987-zen

@kelasante
Copy link
Collaborator

kelasante commented Dec 15, 2024

Another report in 9176848-zen ; however, this happens on a simple site with a Premium plan and a Block theme. It seems to work with a Classic theme. Custom HTML workaround does not work.

When my test Premium site is downgraded to a free site, the block works.

@ricklabsdotn8
Copy link

9166470-zen

@github-actions github-actions bot added [Interaction #] > 20 (Automated) interaction count label for better visibility. Please don't add these manualliy. and removed [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. labels Dec 16, 2024
@rinazrina
Copy link

Another report: 9215065-zd-a8c

@arthur791004
Copy link
Contributor

arthur791004 commented Jan 8, 2025

I just found the twitter oembed endpoint, https://publish.twitter.com/oembed, sometimes returns 404 for the same tweet URL if you requests many times in a short period. It's weird...😞

This and this look like the same issues.

@ianstewart
Copy link
Contributor

@oskosk I asked @obenland to send you some notes on this one.

@supernovia
Copy link
Contributor

9286282-zd-a8c

@oskosk noting I closed this near-duplicate issue, which was about the classic editor; the underlying problem with both seems to be the same: we change an x.com link to twitter.com and break the embed. [Classic Editor] X embeds not working #98474

@jorpdesigns
Copy link

Reported in 9297202-zen. The site is atomic so suggested embedding the post via the Custom HTML block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Interaction #] > 20 (Automated) interaction count label for better visibility. Please don't add these manualliy. [Platform] Atomic [Pri] High Address as soon as possible after BLOCKER issues [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Escalated to Product Ambassadors Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended
Projects
Development

No branches or pull requests