n_s_simpson Posted April 8, 2015 Share Posted April 8, 2015 (edited) Hi Everyone So I tested my index page here on Facebook:https://developers.facebook.com/tools/debug/og/object/ It said that all the various og settings were missing so I initially edited the header.tpl using this code: <meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}"/> <meta property="og:url" content="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/> <meta property="og:site_name" content="{$shop_name|escape:'htmlall':'UTF-8'}"/> <meta property="og:type" content="website"> <meta property="og:description" content="{$meta_description|escape:html:'UTF-8'}"> {if $page_name=='product'} <meta property="og:image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}"> {else} <meta property="og:image" content="{$img_ps_dir}logo.jpg" /> {/if} The index page then complained about circular references and also logo.jpg was missing because as other users have commented, when you upload a new logo in PS1.6 it gives it a unique reference number. I then tested a product page and it said that there were duplicate og settings so I went back to the standard header.tpl to investigate. Turns out that while the index page is missing the og settings the product pages already include them as standard. However, the product pages have invalid og settings too: Extraneous Property Objects of this type do not allow properties named 'og:email'.Extraneous Property Objects of this type do not allow properties named 'og:phone_number'.Extraneous Property Objects of this type do not allow properties named 'og:street-address'.Extraneous Property Objects of this type do not allow properties named 'og:locality'.Extraneous Property Objects of this type do not allow properties named 'og:country-name'.Extraneous Property Objects of this type do not allow properties named 'og:postal-code'.Parser Mismatched Metadata The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data being ordered in an unexpected way, multiple values being given for a property only expecting a... single value, or property values for a given property being mismatched. Here are the input properties that were not seen in the parsed result: 'og:title, og:type, og:site_name, og:description, og:email, og:phone_number, og:street-address, og:locality, og:country-name, og:postal-code, og:image:url' Does anyone know what changes need to be done to get this working correctly? (Also why isn't my logo just called logo.jpg?) Cheers Nick Edited April 8, 2015 by n_s_simpson (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts