Skip to content

Instantly share code, notes, and snippets.

@TastyToast
Created January 14, 2013 22:24
Show Gist options
  • Save TastyToast/4534091 to your computer and use it in GitHub Desktop.
Save TastyToast/4534091 to your computer and use it in GitHub Desktop.
Playable videos in Facebook Timeline
<a href="#">Click me</a>
<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/EzNhaLUT520?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/EzNhaLUT520?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
<script type="text/javascript">
(function($){
$(document).bind('afterfbinit', function(){
$('a').on('click', function(e){
e.preventDefault();
FB.ui({
method: 'feed',
name: 'test Link',
source: 'http://www.youtube.com/v/EzNhaLUT520?version=3&amp;hl=en_US'
})
})
})
})(jQuery)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment