Unable To Post Products In Facebook, Wanelo, Pintrest

Hello



When i try and post a product from my cs cart website the post just says “website name” and takes the first picture on the homepage every time, instead of posting the picture of the product at the URL i am posting, with the correct link.



Same too happens with content websites like wanelo and pintrest, the websites don't recognise individual products, they all show the same picture and carry the same meta data.



Any ideas? thanks

If you add Open Graph meta tags to your meta.tpl (\design\themes\responsive\templates), you can define the image selected for the FB post.

It's best to create meta.post.tpl or meta.pre.tpl file for this purpose, using my_changes.

I just redid the whole kit-n-kaboodle to my v3 store yesterday.

I added this:

```php





{if $smarty.request.dispatch eq "products.view" }









{else}


1} - {/if}{$location_data.title|escape:"html"}{/if}{/if}" />




{/if}

```

Here's an easy to understand blog on the subject:

http://moz.com/blog/meta-data-templates-123



Then you want to test your URL at FB here:

Sharing Debugger - Facebook for Developers

The variables for images and url change in v4. Here's what I've got for v4:

```php

{if $smarty.request.dispatch eq “products.view” }









$config.current_location/$config.current_url"|fn_url}" />









{else}





1} - {/if}{$location_data.title|escape:“html”}{/if}{/if}” />



$config.current_location/$config.current_url"|fn_url}" />





{/if}




```

Thankyou for this. I have added the code but I get this error with the debugger.



Any ideas ?



Object at URL 'http://www.gohorse.com.au/xxxxxx.html'; of type 'website' is invalid because a required property 'og:type' of type 'string' was not provided.



I am using V 4.2.1