Storify oEmbed

Of note, this no longer appears to work. It’s been almost 2 years. Not shocked. Embedly has a plugin though. http://wordpress.org/plugins/embedly/

I was reviewing a plugin that went the long way around for this (similar to how things work on my Rickroll plugin, with a search/replace).

You would think this is easier:

// Add Storify oEmbed
function add_oembed_storify(){
    wp_oembed_add_provider( 'http://storify.com/*', 'http://api.storify.com/v1/stories/');
}
add_action('init','add_oembed_storify');

But even though there’s a nice API, it won’t work. Why not? Because Storify doesn’t have it’s own oembed provider. Boo. Instead you have to use something like embed.ly

wp_oembed_add_provider( 'http://storify.com/*', 'http://api.embed.ly/1/oembed?url=http://storify.com/');

Then you put http://storify.com/dailydot/betty-white-joins-twitter in your post and it shows a story.

Example:

http://storify.com/dailydot/betty-white-joins-twitter

One thought on “Storify oEmbed

  1. Thanks for this quick tip. Saved me a lot of headaches, especially since the main plugin I see with this functionality seems to include a lot of other features I didn’t really want or need.

Comments are closed.