Facebook Open graph API显示额外信息

时间:2017-02-10 11:44:04

标签: php html facebook facebook-graph-api

当我在Facebook上分享我的网站时,我得到了我在网站上设置的信息,如下所示。

<meta name="keywords" content="ICCOTP, COTP" />
<meta name="robots" content="INDEX,FOLLOW" />
<meta property="og:title" content="ICCOTP" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.iccotp.com/" />
<meta property="og:description" content="International Council for Online Training Professionals 
" />
<meta property="og:site_name" content="Default Store View" />
<meta property="og:image" content="http://www.iccotp.com/media/wysiwyg/iccotp-images/darkened_slider5_v2.png " />

但最后,通过我的网站网址,有一个名称" | BY STEPHEN HEYMAN" facebook抓取。 enter image description here

这是我明确点击API调用时得到的响应。

{
  "url": "http://www.iccotp.com/",
  "type": "website",
  "title": "ICCOTP",
  "image": [
    {
      "url": "http://www.iccotp.com/media/wysiwyg/iccotp-images/darkened_slider5_v2.png"
    }
  ],
  "description": "International Council for Online Training Professionals",
  "site_name": "Default Store View",
  "updated_time": "2017-02-10T11:25:59+0000",
  "id": "1464214416929124"
}

没有STEPHEN HEYMAN作为回应。我也搜索了我的网站源代码和数据库,但也没有找到它。 facebook正在抓取这个?

1 个答案:

答案 0 :(得分:1)

所以我通过添加元标记

来摆脱这个错误
<meta name="author" content="author name" />
<meta name="copyright" content="author name" />
带有og:property-name的代码前的

不确定哪一个会覆盖默认值,但我需要两个,所以我没有测试。

相关问题