Facebook 分享按钮仅在第一次有效
我正在这个网站上工作: http://www.annashome.com/site/index.php< /a>
我有一个非常奇怪的问题。在每个产品的页面上,我都有一个 Facebook 分享按钮,第一次使用(或打开)它时效果很好,但如果您随后进入另一个产品的页面并尝试使用它(分享或只是打开),它会阻止 URL(不会)显示标题、描述、图像等)。我需要它始终显示标题、图像和描述。
如果我清除 cookie 并尝试该按钮,它会再次起作用,但在另一个产品上第二次不起作用...
我已经设置了所有属性,例如 og:title、og:description、og:image 并检查了 DOCTYPE,但我仍然无法弄清楚为什么它在将其用于第一个产品而不是其他产品时显示正确的信息。
我使用 addthis.com 并也检查了它。这真的很困扰我。
如果您能为我提供一些建议,我将非常感激!
谢谢 !
I am working on this website: http://www.annashome.com/site/index.php
I have a very strange problem. On each product's page I have a Facebook share button which works fine when using (or opening) it the first time but if you then go at another product's page and try to use it (share or just open) it brakes the URL (doesn't show title,description,image,etc.). I need it to show the title,image and desciption at all times.
If I clear cookies and try the button it works once again but not the second time on another product...
I have set all the attributes such as og:title, og:description, og:image and have checked the DOCTYPE but I still cannot figure out why it shows the correct info when using it for the first product but not the others.
I use addthis.com and have chedk it also. It's really bugging me.
I would really appreciate if you'd have some tips for me !
Thank you !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,Facebook 分享按钮可以正常工作,没有任何问题。您可能遇到了 url 重写问题,或者只需要更改管理菜单中的基本设置。您拥有的每件产品都可以从两个不同的地址访问。例如:
http://www.annashome.com/site/index.php/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
在这种情况下,如果您分享它,链接将被破坏。
http://www.annashome.com/site/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
在这种情况下,它将起作用。
您还可以看到,共享计数器没有相同的编号。
您的网站将其添加到每个产品的地址中:“index.php/”。如果你删除它,一切都会正常进行。
希望这有帮助。
Actually, the facebook share button works as it should - without any problems. You probably have an url rewrite problem or only a basic setting in the admin menu needs to be changed. Every product you have can be accessed from two different addresses. For example:
http://www.annashome.com/site/index.php/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
In this case, if you share it, the link will be broken.
http://www.annashome.com/site/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
In this case, it will work.
You can also see, that the share counter doesn't have the same number.
Your site adds this to your address on every product: "index.php/". If you remove it, everything will work as it should.
Hope this helps.