Embedly tutorial/example no longer working?
I've been using a modification of embedly's tutorial to embed thumbnails of photos onto my website. It's been working really well so far, though recently it hasn't been embedding my photos and figured I'd maybe messed something up, but looks like somehow this service is not working any more.
If you put in the exact code they give you on their website and run it, it clearly does not work any more and does not embed anything.
Am I missing something? Is anyone else able to get this code working?
EDIT This is what my page looks like: http://i.imgur.com/kSWyD.gif
EDIT Working jsFiddle http://jsfiddle.net/enderx475/7axFD/
<!DOCTYPE>
<html>
<head>
<title>Page Title</title>
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script src="http://scripts.embed.ly/jquery.embedly.min.js"></script>
<script type="text/javascript">
$('document').ready(function(){
$('div.content').embedly({
maxWidth: 450,
wmode: 'transparent',
method: 'after'
});
});
</script>
</head>
<body>
<div class="content">
<article>
<h2>Title</h2>
<p>Lorizzle ma nizzle dolor sit amizzle, brizzle adipisci开发者_运维问答ng elit. </p>
<a href="http://www.youtube.com/watch?v=ZbcgyPtYBY0">youtube</a>
<p>Maecenizzle owned bow wow wow. Nam eros.</p>
</article>
<article>
<h2>Title 2</h2>
<p>Lorizzle ma nizzle dolor sit amizzle, brizzle adipiscing elit. </p>
<a href="http://www.flickr.com/photos/churchclothing/2597225382/">flickr</a>
<p>Maecenizzle owned bow wow wow. Nam eros.</p>
</article>
</div>
</body>
</html>
My embedly videos also just stopped working. Looks like they are requiring an API key now. Not sure when this change happened, but it seems to be recent.
After you sign-up here: http://embed.ly/pricing
You get a key and then need to pass that as a param when calling embedly. Make sure you also have the latest version of the jquery javascript file, as it is set up to look for the key.
This code works perfectly for me localy. Try jsfiddle.net. Maybe browser caching problem?
精彩评论