oEmbed API
Posted: Wed Oct 13, 2021 10:00 pm
tl;dr - if you want to embed your gallery in other CMS' and sites, install https://github.com/JorjaFox/embed-npg
What's oEmbed?
oEmbed (https://oembed.com) is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
Have you ever used a website and pasted a link to a YouTube video in, and had it automagically show the video? Congratulations! You've used oEmbed! Now that power can be yours!
What does the plugin do?
This plugin builds the required settings to permit an oEmbed aware service to intercept the link processing and return an object embedded result to insert into the requesting document. It's as simple as:
1. Install
2. Activate
3. Have a beer
You can override the iframe design, the CSS, and the logo with your own theme, and customize the iframe size in the plugins settings.
What doesn't the plugin do?
The plugin does not act as an oEmbed 'reader.' That is, if you're using NetPhotoGraphics to post articles, this won't magically enable embedding.
Are there risks?
Using this plugin means anyone can embed from your site. If you don't want that, don't use this OR set your x-frame options to whitelist and only allow who you want. Also since this uses iframes, if you have set on the server where your gallery is located, this won't work.
What's oEmbed?
oEmbed (https://oembed.com) is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
Have you ever used a website and pasted a link to a YouTube video in, and had it automagically show the video? Congratulations! You've used oEmbed! Now that power can be yours!
What does the plugin do?
This plugin builds the required settings to permit an oEmbed aware service to intercept the link processing and return an object embedded result to insert into the requesting document. It's as simple as:
1. Install
2. Activate
3. Have a beer
You can override the iframe design, the CSS, and the logo with your own theme, and customize the iframe size in the plugins settings.
What doesn't the plugin do?
The plugin does not act as an oEmbed 'reader.' That is, if you're using NetPhotoGraphics to post articles, this won't magically enable embedding.
Are there risks?
Using this plugin means anyone can embed from your site. If you don't want that, don't use this OR set your x-frame options to whitelist and only allow who you want. Also since this uses iframes, if you have
Code: Select all
X-Frame-Options: SAMEORIGIN