Moderator: madimar

Post by virussino » Mon Apr 24, 2017 7:44 pm

Ciao a tutti :)
non riesco a far funzionare l'opengraph di Facebook, che nel https://developers.facebook.com/tools/debug/ continua a dirmi:

Your page has meta tags in the body instead of the head. This may be because your HTML was malformed and they fell lower in the parse tree.
Please fix this in order for the tags to be usable.


Così ho controllato tramite il link "Vedi esattamente ciò che lo scraper visualizza per il tuo URL" e facebook vede così uno qualsiasi dei miei prodotti:

<!DOCTYPE html>
<html><body>
<p>&#65279;&#65279
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="it" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="it" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<!--<![endif]-->
</p>

La cosa strana è che se vado su opengraphcheck.co oppure su developers.google.com/structured-data/testing-tool/ è tutto nella norma.
Oppure se apro il sorgente pagina con il browser vedo così:

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="it" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="it" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="it">
<!--<![endif]-->
<head>
<meta property="og:title" content="Malia Lab Bolero camicia 100,00€" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Vesti la natura" />
<meta property="og:image" content="https://www.vestilanatura.it/image/cata ... cotone.jpg" />
<meta property="og:url" content="https://www.vestilanatura.it/Camicia-bi ... one-bolero" />
<meta property="og:description" content="Abbigliamento biologico e Made in Italy Malia Lab. Le linee classiche di una camicia plasmate per creare questa forma a bolero, dal design unico e ricercato. Prodotto ecosostenibile e certificato." />


Quindi in teoria dovrebbe essere tutto ok, ma secondo Facebook io non ho inserito il tag <HEAD>
E' già capitato a qualcuno?

Grazie

Eco-friendly Clothing Store for Man and Woman, with a wide selection of Vegan and Made in Italy clothing, bags, underwear. http://www.vestilanatura.it for join the sustainable lifestyle!


User avatar
New member

Posts

Joined
Wed Jul 08, 2015 12:13 am


Post by oc-extensions » Thu Apr 27, 2017 5:11 am

Hi,

Seems that problem was solved :)

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by virussino » Wed May 03, 2017 6:03 am

Avevo aperto e salvato il file product.tpl con frontpage e questo ha causato il problema!

Eco-friendly Clothing Store for Man and Woman, with a wide selection of Vegan and Made in Italy clothing, bags, underwear. http://www.vestilanatura.it for join the sustainable lifestyle!


User avatar
New member

Posts

Joined
Wed Jul 08, 2015 12:13 am

Who is online

Users browsing this forum: Semrush [Bot] and 114 guests