Custom integrations

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

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

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

Theoretically either should work, but ideally: both

Cc @Kevin ?

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.

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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.