I've been trying to find a straight answer to this for over 3 hours now.
I want to have a facebook-share on my site. And to to that I need <meta property>
tags. However this is not supported without some special import as I understand it.
What I want:
<meta property="og:url" content="http://samples.ogp.me/136756249803614" />
<meta property="og:title" content="Chocolate Pecan Pie" />
<meta property="og:description" content="This pie is delicious!" />
<meta property="og:image" content="https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-prn1/851565_496755187057665_544240989_n.jpg" />
However this gives the error "Validation (XHTML5) attribute 'property' is not a valid attribute of element meta".
Ive tried changing doctype like in this answer but that did nothing. Ive tried using prefix but that doesn't work either. What am I missing here? I really wish facebook would have a better tutorial for beginners.
All I get when I press share is "Localhost". Even if I specify title, desciption, image etc in meta-tags using "name" instead of "property".