0

I am building a product catalog website using joomla and virtuemart extension. To let users share my products on facebook, I have added a facebook share button in my product's flypage.

In the flypage I have added the following code:

 <div> <a name="fb_share" type="button" ></a> 
 <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
 </script> 
 </div>

When I click on the share button it shows only the url of the website. But I want to show the product Title and Image of the product too. I have installed Virtuemart Open Graph plugin but it is not working.

Would you please kindly tell me how to show the title and image of the product when sharing on facebook??

4

1 回答 1

0

简单的解决方案 - 您必须添加og:tags到共享/喜欢按钮所在的页面。包含之类的og:tags东西og:titleog:image...等。

您可以阅读更多关于开放图形协议的使用以及og:tags在此 URL 上的信息:
https ://developers.facebook.com/docs/opengraph/

于 2011-12-07T14:38:55.807 回答