当我尝试在Facebook上分享时,露天卡通产品图像错误 [英] Wrong opencart product images when I try to share on facebook

查看:173
本文介绍了当我尝试在Facebook上分享时,露天卡通产品图像错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的在线商店 http://goo.gl/1AJpjN (opencart 1.5.5.1)
挑战是在Facebook上正确分享主页和产品页面。

It's my online store http://goo.gl/1AJpjN (opencart 1.5.5.1) The challenge is to share the homepage on facebook properly and the product pages as well.

产品页面没有问题。 addthis.com的扩展工作相当不错,我可以看到产品图像具有正确的标题和描述fb ...但是没有首页的fb分享按钮。

There was no problem with product pages. The addthis.com extension worked quite well, I could see product images with proper title and descriptions on fb... but there was no fb share button for homepage.

所以,我在蓝色水平菜单中使用fb普通HTML 5代码添加了fb分享按钮。 https://developers.facebook.com/docs/plugins/share-button/

So, I added fb share button for homepage in blue horizontal menu using fb normal HTML 5 code from here https://developers.facebook.com/docs/plugins/share-button/

在我完成之后,首页共享没有问题。 Fb显示商店标识和正确的标题,正确的描述,但是当我尝试分享产品页面时,fb显示商店标志,而不是产品图片。

After I did it there is no problem with homepage sharing. Fb shows store logo and proper title with proper description, but when I try to share product pages, fb shows store logo instead of product images.

正如我所说,挑战是在Facebook上分享主页和产品页面。
做什么?

As I said, The challenge is to share the homepage on facebook properly and the product pages as well. What to do?

推荐答案

当您在Facebook上分享一个页面时,Facebook会抓取它并尝试确定哪个图像它应该使用。如果显示错误,可以通过向该页面专门为此问题添加元标记来帮助它。您可以在这里找到更多信息

When you share a page on Facebook, Facebook crawls it and tries to decide which image it should use. If it's showing the wrong one, you can help it by adding a meta tag to the page specifically for this issue. You can find more information here.

一个例子是

< meta name =og:imagecontent =http:// www2 .intelnet.ge / image / cache / data / uploads / 32438HP_PAVILION_TOUCHSMART_11_E100SR__F5B63EA ___ 0_7b_enl-500x500.jpg>

将此添加到您的< head> 使用OpenCart的模板系统可能有点复杂,但是已经有相当多的扩展。我建议看看这里

Adding this to your <head> using OpenCart's templating system can be a bit convoluted, however there are already quite a few extensions that do this. I'd suggest having a look here.

这篇关于当我尝试在Facebook上分享时,露天卡通产品图像错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆