Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Plus share button Displayed Wrong Image

I want to add Google plus button. So user can share products using Google plus. But when i click on share button then Product name, URL everything are correct except product image. Product image not displayed properly. I write below code for create Google Plus Button code.

<a href="#" onclick="popUp=window.open('https://plus.google.com/share?url=my_product_url', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false">Share on Gogole+</a>

I also try to add some meta tags for resolve this issue but nothing happen.

<meta property="og:title" content="..."/>
<meta property="og:image" content="..."/>
<meta property="og:description" content="..."/>

In sort I need to display current products details and Image on Google plus share popup.

Please help me as soon as possible.

like image 694
Indian Avatar asked Oct 25 '13 10:10

Indian


1 Answers

It would be easier to tell what was wrong if you gave an example URL but it sounds like you have markup for multiple entities on your product detail page. When that happens the snippet fetcher will take the image from the first entity in the page.

Use this tool: http://www.google.com/webmasters/tools/richsnippets to test your snippet markup and identify the entities the snippet fetcher is seeing.

You should also take a look at: https://developers.google.com/+/web/snippet/ which shows that we prefer that you use schema.org markup to describe the entities in your page.

like image 104
ade Avatar answered Oct 21 '22 00:10

ade