Reputation: 6136
I ave embedded youtube video on my CodeIgniter page, i'm using official youtube embedding code:
<iframe width="560" height="315" src="http://www.youtube.com/embed/msHFJhMqaKI" frameborder="0" allowfullscreen=""></iframe>
But when I try to share my page into facebook, i have no thumbnail, is there a tag or something what can help me with sign my video as future facebook thumbnail?
Upvotes: 0
Views: 2118
Reputation: 4446
yap you should add the meta tags in your head portion
<meta property="og:image" content="http://siim.lepisk.com/wp-content/uploads/2011/01/siim-blog-fb.png" />
after adding meta tag you can check what facebook scrap from your page
here is some other meta tags that will be helpfull
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
For more information
visit this link ..
Upvotes: 2