0

3 周前完成 HTML 处女,但成功地让我的网站启动并运行到一个正常的标准,但我在 fb 集成方面遇到问题,fb 看起来应该,评论应该发布,但在调试时我得到以下……

Scrape Information

Response Code   200
Fetched URL http://shropshireradio.com/
Canonical URL   http://ShropshireRadio.com/
Object Properties

fb:app_id   149188391870835
og:url  http://ShropshireRadio.com/
og:type website
og:title    Streaming Shropshire DJs
og:image    
og:description  music of all genres under 1 roof
og:updated_time 1331952439
Raw Open Graph Document Information

Meta Tag    <meta property="fb:app_id" content="149188391870835" />
Meta Tag    <meta property="og:type" content="website" />
Meta Tag    <meta property="og:url" content="http://ShropshireRadio.com" />
Meta Tag    <meta property="og:title" content="Streaming Shropshire DJs" />
Meta Tag    <meta property="og:description" content="music of all genres under 1 roof" />
Meta Tag    <meta property="og:image" content="http://i1067.photobucket.com/albums/u437/ShropshireRadio/ShropshireRadio.jpg" />
Redirect Path

original    http://shropshireradio.com/
og:url  http://ShropshireRadio.com/
Final URL is in bold (this is the URL we tried to extract metadata from).

我可以在上面看到它看起来不正确,但无法将其与我的代码匹配以查看有什么问题!任何帮助表示赞赏!干杯

我必须更改 2 个获取的和锥形的 url 才能在我的脚本中发布它是正确的

4

1 回答 1

0

具有属性“og:type”的元标记的内容属性应该是这个列表中 的内容,目前您将其作为您网站的 url。

您的 head 标签的前缀属性应该是这个

og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#

此外,您应该将 fb:like 标记的 data-href 属性从http://www.facebook.com/ShropshireRadio.comTeam更改为http://shropshireradio.com/

于 2012-03-17T00:47:56.570 回答