Pardon my ignorance in advance please. I have spent a great deal of time trying to investigate this and I think I'm just plain doing it wrong. Basically I want to post a youtube inside the body of a blog post. Simple enough however when I post the URL to the drupal page into facebook, facebook shows there are no thumbnails associated with the youtube video that is in the body of the drupal page.
I am aware that opengraph_meta would not be able to populate the og:image tag with only the embed code present inside the body, however is this the correct way to even be doing it? do i need special Media fields? i have workarounds but they seem way too tedious to be correct. what are the best practices for doing this? i feel like i need to have my hand held on this on and it stinks.
thanks to any who reply
--wayne
Comments
Comment #1
BrockBoland commentedI think you would need to actually include an image of the YouTube thumbnail in the node for Facebook to grab it as the thumbnail for the shared item - Facebook won't see the YouTube Flash player on the page and make use of it, I guess. You may need to put the image in the node body manually and use CSS to hide it to get the desired result.
On the other hand, it looks like YouTube may also use a standard filename for the thumbnail. I just pulled up a random video (http://www.youtube.com/watch?v=-sfM5-DZXLA) and found this in the source code:
It seems YouTube uses a standard name for the thumbnail. This module wouldn't do what you want, but you could install Integrated Metatags so that you can set og:image on each node. You'll still need to input the URL of the image manually, unless you want to write some bridge code to automate it for yourself.
Comment #2
hiddentao commented