Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

7
[Request] Fix your broken oEmbed implementation
Author Summary
Viper007Bond is in request
Post Body

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.

Author
Account Strength
100%
Account Age
14 years
Verified Email
Yes
Verified Flair
No
Total Karma
43,820
Link Karma
5,466
Comment Karma
38,354
Profile updated: 5 days ago
Posts updated: 10 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago