Support discovery

Created on 18 September 2010, over 14 years ago
Updated 26 November 2024, 4 months ago

From http://www.oembed.com/

oEmbed providers can choose to make their oEmbed support discoverable by adding elements to the head of their existing (X)HTML documents.

For example:

<link rel="alternate" type="application/json+oembed"
	href="http://flickr.com/services/oembed?url=http%3A//flickr.com/photos/bees/2362225867/&format=json"
	title="Bacon Lollys oEmbed Profile" />
<link rel="alternate" type="text/xml+oembed"
	href="http://flickr.com/services/oembed?url=http%3A//flickr.com/photos/bees/2362225867/&format=xml"
	title="Bacon Lollys oEmbed Profile" />

The URLs contained within the href attribute should be the full oEmebed endpoint plus URL and any needed format parameter. No other request parameters should be included in this URL.

The type attribute must contain either application/json+oembed for JSON responses, or text/xml+oembed for XML.

I can see how this is going to be tricky because oembedprovider.module passes around an absolute URL and a PHP function callback. If we could pass around a menu path instead or in addition, hook_init() could check the list of providers for local paths and if any matched the current one, add a link element to the HTML head.

✨ Feature request
Status

Closed: outdated

Version

0.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024