I have a blog on my app and on this blog I usually put some youtube videos and when I share the links of these pages on Facebook there's no thumbnail. Is there a way to do this?
I have tried to put meta-data with open graph protocol, with the youtube link but no luck.
Is this possible?
EDITED
In my app I was including the OG video tag like this:
%meta{ :property => "og:title" , :content => "#{post.title}" }
%meta{ :property => "og:type" , :content => "article" }
%meta{ :property => "og:url" , :content => "#{post_url(post.slug).sub('https:', 'http:')}" }
-if post.video_thumbnail && post.video_thumbnail != ""
%meta{ :property => "og:video" , :content => "http://www.youtube.com/watch?v=#{post.video_thumbnail}"}
I found the answer on this question: How do I get a YouTube video thumbnail from the YouTube API?
Youtube API lets you get images from the video if used this URL:
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
So I included that link as my OG image tag like this:
%meta{ :property => "og:image" , :content => "http://img.youtube.com/vi/#{post.video_thumbnail}/0.jpg" }
And it work perfectly.