omeka-s-modules / Sharing

Omeka S module for sharing content via 1) Social Media and 2) Embedding Omeka S content in other sites
GNU General Public License v3.0
4 stars 6 forks source link

Documentation: oEmbed feature #42

Closed jimsafley closed 1 year ago

jimsafley commented 1 year ago

The only notable change in the next release is the addition of oEmbed. Like Open Graph, it makes itself discoverable on public item pages, media pages, and site pages; but instead of <meta> tags it uses a <link type="application/json+oembed"> tag that points to the newly added oEmbed endpoint. This new ability to be discoverable will need to be documented.

allanaaa commented 1 year ago

What is it I'm looking for exactly? I see this in the head: <link href="http://dev.omeka.org/amayer/amayer-s/omeka-s/oembed?url=http://dev.omeka.org/amayer/amayer-s/omeka-s/s/my-omeka-s-site/page/testing-layouts" rel="alternate" type="application/json+oembed" title="Testing Layouts">

So the endpoint is http://dev.omeka.org/amayer/amayer-s/omeka-s/oembed. But this validator doesn't seem to like the input: https://embed.ly/providers/validate/oembed?endpoint=http%3A%2F%2Fdev.omeka.org%2Famayer%2Famayer-s%2Fomeka-s%2Foembed&url=http%3A%2F%2Fdev.omeka.org%2Famayer%2Famayer-s%2Fomeka-s%2Fs%2Fmy-omeka-s-site%2Fpage%2Ftesting-layouts

jimsafley commented 1 year ago

Yes, it's that application/json+oembed link that services will see. I just pushed a fix that may make that validator work. There's also the Iframely URL Debugger, if you prefer.

allanaaa commented 1 year ago

Yep, that fixes a few of the validators I tried. Thanks!