iFramely documentation?
-
If I run a website, and I want to define what data goes into an iFramely frame, is there documentation anywhere as to what markup I should use?
-
I found documentation on thier site......
NFC if it's what you need or what even it all means but it is on thier site so..... it's a starting spot right?
-
Ironically, they don't do anything useful on their site.
oEmbed 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.
-
From what little I played with it, I'd say go with oEmbed. There's plenty of examples here to grasp all the major stuff, it's a pretty simple standard, really:
OpenGraph looked like a unwieldy beast with poor docs last I checked. I don't see a particular reason to even fuck with it, they seem to be equally supported so it's probably not worth the pain.
Again, working from memory, for oEmbed you just need to add meta headers to your site pointing to an endpoint that serves oEmbed data as either JSON or XML (or both) and have that return a structure as in the examples. Bingo-bango, it works.
Unless you want it to work on Discourse, that's different.
EDIT: And now I figure out boomzilla posted the same link, I thought that one was to something else... anyway, it's not very detailed, but it's not that complex of a standard either. You can also look into some raw data on iFramely for sites you know implement it, like Wikipedia or something, to see how to get specific things working.
-
Cool, I'll check to see if oEmbed works.
Second question-- does nodebb OneBox every site except for those blacklisted, or do I need to get an admin to whiltelist my site when it's ready?
-
@lorne-kates It tries to onebox everything unless it's blacklisted.
-
@boomzilla said in iFramely documentation?:
@lorne-kates It tries to onebox everything unless it's blacklisted.
There's a whitelist in iframely. And if we edit it, we have to maintain it by hand.
-
@lorne-kates oEmbed needs to be whitelisted, but OpenGraph doesn't. Here's TDWTF's implementation: https://github.com/tdwtf/WtfWebApp/blob/8503f388bffddd12ad3cf78f606fedea2f38fe72/TheDailyWtf/Views/Shared/_Layout.cshtml#L22-L40
That generates an iframely output like this:
-
@lorne-kates said in iFramely documentation?:
If I run a website, and I want to define what data goes into an iFramely frame
Ah yes, the age-old question. How much frame could an iFramely frame if an iFramely frame could frame frames.
-
@el_heffe said in iFramely documentation?:
Ah yes, the age-old question. How much frame could an iFramely frame if an iFramely frame could frame frames.
Infinitely many, if iFramely uses iframes to frame frames.