Custom integrations


#1

Hello,

I’m looking documentation for building custom integrations. I’d like to create a custom integration so we can provide a link from our site and have it work just like the Youtube or Flickr integrations pulling in content from our APIs to display images and some extra data.

Any thoughts on this? I’d like to avoid building the ghost backend ourselves.

Thanks, Jeremy


#2

Hi Jeremy, this works automatically via oembed, so if you service supports oembed then it would work in Ghost.

https://oembed.com/


#3

Hi John,

Thanks. It looks like the only way to get this working is to actually get our service listed as an Oembed provider?

Or can we use link rel=“alternate” type=“application/json+oembed” href=“OEMBED_URL” ???

This method isn’t working for me currently.

Jeremy


#4

Theoretically either should work, but ideally: both

Cc @Kevin ?


#5

Both should work, the oembed.com provider list slightly more efficient but the meta tag discovery method can be more flexible.

If it’s not working for you I would suggest reviewing your Ghost server logs.


#6

Thanks. Yeah, I read through the docs and was still receiving this error:
ValidationError: No provider found for supplied URL in
versions/2.14.0/core/server/api/v2/oembed.js

Turns out it didn’t lime my dev.site host setup and I was able to trace to this error from the logs:
“Request made from incorrect origin. Expected ‘https://dev.shopittome.com’ received ‘’.”

Anyways, putting this on a public server fixed it. Maybe the DNS lookup isn’t respecting my hosts file? Either way the issue is mostly solved.

Thanks again, Jeremy