具有元属性的Like按钮的图像错误

时间:2012-01-29 18:03:54

标签: image facebook-graph-api button facebook-like opengraph

即使使用元属性,FB仍然会获取错误的图像。

这是我的头脑:

<title>5mm 70L Full Wave LED 5-multi Holiday Lights</title>

<meta name="description" content="5mm 70L Full Wave LED 5-multi Holiday Lights - The LED Warehouse" />

<meta name="keywords" content="5mm,70L,Full,Wave,LED,5-multi,Holiday,Lights" />

<meta name="GOOGLEBOT" content="index,follow" />

<meta name="robots" content="index,follow" />

<link rel="shortcut icon" href="favicon.ico" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta http-equiv="Content-Style-Type" content="text/css" />

<meta property="og:title" content="5mm 70L Full Wave LED 5-multi Holiday Lights" />

<meta property="og:type" content="product" />

<meta property="og:url" content="http://testing.environmentalled.com/5mm-70L-Full-Wave-LED-5-multi-Holiday-Lights-p105.html"/>

<meta property="og:image" content="http://www.environmentalled.com/images/products/839.jpg"/>

<meta property="og:site_name" content="The LED Warehouse" />

<meta property="fb:admins" content="100001735835873" />

<link href="/style-led.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="/js/magiczoom.js"></script>

我在其他非php页面上使用这些元属性没有任何问题。

1 个答案:

答案 0 :(得分:0)

来自你指定的og:url:http://testing.environmentalled.com/5mm-70L-Full-Wave-LED-5-multi-Holiday-Lights-p105.html

从那里,linter看到了:

Meta Tag:   <meta property="og:title" content="5mm 70L Full Wave LED 5-multi Holiday Lights" />
Meta Tag:   <meta property="og:type" content="product" />
Meta Tag:   <meta property="og:url" content="http://testing.environmentalled.com/5mm-70L-Full-Wave-LED-5-multi-Holiday-Lights-p105.html" />
Meta Tag:   <meta property="og:image" content="http://www.environmentalled.com/images/products/839.jpg" />
Meta Tag:   <meta property="og:site_name" content="The LED Warehouse" />
Meta Tag:   <meta property="fb:admins" content="100001735835873" />

这是不正确的?

linter唯一说的是它找不到og:description。

http://www.environmentalled.com/images/products/839.jpg您想要的图像是正确的吗?