This issue has been closed due to inactivity. Flag to reopen.
My oEmbed for Twitter is currently broken. This is the output in the Prismic dashboard
The embed is rendered without styling
This wasn't an issue before. Any ideas on how to fix it?
Regards,
Kris
Hello @kris, this is probably an issue from the embed itself. Could you show us an example of what you were expecting to see instead?
Hi @Pau
I'm expecting to see a card like this
Like I mentioned, this used to be working fine but was flagged by a client last week.
Which one is the URL that you're pasting in the Embed field, can you send that one over as well please?
@Pau The tweet URL is https://twitter.com/Yoroomie/status/1233991715901411328
I'm also pasting it in a Rich Text field as a note. Here is how the preview is outputted within the writing room UI.
A note that if you paste a Youtube video or a Soundcloud link, then you can see a preview image within Prismic and then it outputs properly within my website as well
Ok so, I think for the case of Twitter embeds, you need to include the Twitter widget script on your website, because at the moment the script you can get from your repository not executed by React. There are workarounds for this, the easiest one is to include the Twitter widget script in the head element.
hi @Pau
Shouldn't Prismic give us an option to omit embedding the script loading. The script was loaded even though I added "?omit_script=true" to the URL. Maybe there needs to be change to the API? See screenshot below:
Hello @kris
I believe your query string is just misformatted. Try changing ?omit_script=true
to &omit_script=true
and see if that works?
Thanks,
Priyanka