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;

