oEmbed custom provider

Hello,

I made a custom oembed like in instructions of oembed when i try to use it i get 404, but everything works;

Over a custom module with oembed i want to show images from my website and add them in a email and send the output, so i won’t have to load the image, title and description each time;

Do you have a allowlist or a specific list of oembed providers that we can only use?

Here is my implemantation
I created a New File, type: Module, checked that i want to use Module in emails.
Now on the right side i added a group called links with one field called url and reapeater option on.

In Hubl i added this code:

{% set myDomain = "https://my-domain.com/oembed&url=" %}

<table>
<tbody>
{% for item in module.links %}

{% set image = oembed({ url: myDomain ~ item.url}).thumbnail_url %}
{% set title = oembed({ url: myDomain ~ item.url}).title %}
{% set description = oembed({ url: myDomain ~ item.url}).description %}

<tr>
	<td >
		<img src="{{ image }}" alt="{{ title }}">
	</td>
</tr>
<tr>
	<td >{{ title }}</td>
</tr>
<tr>
	<td >{{ description }}</td>
</tr>
{% endfor %}
</tbody>
</table>

Then i activated the module i go to Marketing->Email-Content Tab->Press More → choose my module, Press add because i selected to have reapeater option on, a input text field show, i add my url and in email the table with image,title and description should autofill;
Before implementing oembed on my website i tested using flickr. Fo testing porposes:

{% set myDomain = "https://flic.kr/p/" %}

And in url field add ending of the flickr url, like 4EtoZg, 4yz722, and 4vCCcs only change oembed variables, because flickr oembed json doesen’t have description field.
With flickr works like a charm, i don’t have to add image link, title or description, i just add the link and all info just loads. Thats why i think this is a awesome way to use it. I integrated oEmbed on my website verified that oembed integration works with other tools, but when i add my domain instead of flickr with same structure, same implementation in design manager, for my domain just doesen’t work, like my domain is blocked or something;

Hey @cladico just to confirm, are you adding the oembed to your email? If so, I would imagine most email clients don’t support oembed. Emails in general reject third party media being loaded. Doing a quick search I believe oembed is unlikely to work in email.

My assumption here is that the email client is rejecting third party media loading so this will not work. However, I’d love to hear more about your use case, is there a specific reason why you’re using oembed as opposed to embedding images directly in your emails?

Hello,

Thank you for the reply, I’m using oembed inside a module in design manager.
I updated my first post for more details

Hello, I have the same like that issue

I made a custom oembed like in the instructions of https://oembed.com/ when i try to use it i get 404 on Hubspot email marketing get this issue

same like this working

So, I am not sure which issue. please let me know if you have any suggest

Hey @inilesh according to that error there’s no embed found, I’d check in with oembed to find out why this is not being found!

FYI most email clients don’t support javascript or iframes. So embedding content probably won’t work on email.