This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
A long time ago, I asked for oEmbed support and you guys were awesome enough to (sort of) add it. Thanks again for that!
However the implementation doesn't follow the spec at all which makes it hard to use. I'm not the only one who noticed either.
First up, your oEmbed endpoint doesn't support the query string method. This means that I can't do this:
http://gfycat.com/cajax/oembed/?url=http://gfycat.com/PinkTenderBuffalo
This is easier for clients who use whitelists instead of looking at the <head>
s of all potentially embeddable URLs. I can just say "any time you see a URL that looks like gfycat.com/*
, pass it to this oEmbed endpoint". It's faster as it skips the HTTP request for the page to get the oEmbed URL.
Instead I have to parse the URL and then request your custom URL format if I don't want to look at the <head>
:
http://gfycat.com/cajax/oembed/PinkTenderBuffalo
Second, you don't seem to support the maxwidth
or maxheight
arguments. These are super useful so that I can basically say "hey, my content area is 500 pixels wide -- can you give me back an iframe that's no bigger than that?". The alternative is parsing the HTML and modifying it myself while keeping the aspect ratio the same.
Any chance of making these changes? Again, I work for WordPress.com and I'd love to be able to make it so that if anyone on all of WordPress.com drops a Gfycat.com URL in a post on its own line, it magically turns into an embed. Please help me do that! :)
Right now it would require a bunch of one-off code for Gfycat as opposed to simply adding a single line of regex to the WordPress oEmbed whitelist as can be done for any site that follows the spec.
Thanks and let me know if you have any questions. I'm very familiar with oEmbed.
Pinging /u/joey5755 since he was the one who originally implemented it.
Subreddit
Post Details
- Posted
- 9 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/gfycat/comm...