html - Pinterest Rich Pin不起作用和验证器失败?

标签 html facebook-opengraph pinterest

我们已经为这个问题苦苦挣扎了几个月,但仍无济于事。 Pinterest上的丰富大头针曾经在我们的网站上起作用,但突然间,他们停止了工作,一个又一个所有的丰富大头针(可点击的标题和价格)消失了,成为我们网站上的大头针。

例如,使用此product,我们很明显在HTML代码的开头部分具有开放式图形信息:

<meta property="og:type" content="product" />
<meta property="og:title" content="Backless Gray Lace Tulle Flower Girl Dress with Big Bow" />
<meta property="og:description" content="This dress is made of high quality lace and tulle fabric; Unique Cross back with straight neckline in the front; Big ... Shop now use NYC2018 for 9% off TODAY!" />
<meta property="og:url" content="http://www.princessly.com/backless-gray-lace-tulle-flower-girl-dress-with-big-bow.html" />
<meta property="og:site_name" content="Princessly.com" />
<meta property="og:price:amount" content="49.62" />
<meta property="og:price:currency" content="USD" />
<meta property="og:availability" content="instock" />

根据其丰富的pin要求here。大约半年前,当我们首次在网站上实现它时,一切都很好。不幸的是,由于某种原因,它在1个月前停止工作。参见pin page。它不再显示这些丰富的引脚信息。

当我们尝试使用带有丰富引脚验证器(https://developers.pinterest.com/tools/url-debugger/)的产品页面时,它就是still NOT working,并且不断为我们测试的每个URL给出此错误:

We were unable to retrieve any data from your URL.



像这样:http://www.princessly.com/pinterest_error.png

这不是一个非常有用的错误消息。我们不确定他们是否无法访问该页面(http代码?空白页面还是其他?),或者只是在那里找不到任何打开的图形信息。

我们尝试了在网站站长论坛上询问所有问题并寻求Pinterest官方支持,这除了给我们提供我们已经知道的文档并责怪我们的服务器阻止其机器人访问外,基本上没有帮助,但是在与我们的托管团队确认了几次之后,没有任何错误关于Pinterest.com访问我们网站的所有信息:
54.85.173.173 - - [11/Oct/2016:21:22:00 -0500] "GET /u-back-ivory-cotton-ruffle-neckline-flower-girl-dress.html HTTP/1.1" 200 22477 "-" "Pinterest/0.2 (+http://www.pinterest.com/)"
54.227.228.14 - - [11/Oct/2016:21:27:20 -0500] "GET /u-back-ivory-cotton-ruffle-neckline-flower-girl-dress.html HTTP/1.1" 200 22477 "-" "Pinterest/0.2 (+http://www.pinterest.com/)"
52.87.185.68 - - [11/Oct/2016:21:28:06 -0500] "GET /u-back-ivory-cotton-ruffle-neckline-flower-girl-dress.html HTTP/1.1" 200 22477 "-" "Pinterest/0.2 (+http://www.pinterest.com/)" 

由于我们是女性产品商人,因此Pinterest的销售额相当可观。自从丰富的大头针消失以来,我们已经看到收入大幅下降。我们认为,在我们发言时,这个问题正在浪费真钱。

我们很拼命,认为应该在这里尝试运气。不确定这是否适合编程问题,但肯定涉及HTML和Open Graph的代码以及提供开发人员API的主要社交网络之一。

由于我们无法使用Pinterest机器人以及它如何看待我们的页面,因此调试此方法的方法似乎非常有限。

任何想法如何发生以及如何调试和修复它?这里有任何Pinterest员工开发人员可以提供一些见解吗?谢谢!

更新1

这是我最近24小时通过Princessly.com的index.php记录的HTTP用户代理,其中包含“Pinterest”:http://www.princessly.com/Pinterest.txt

我的主持人WiredTree非常友善,可以再次为我检查所有这些内容。似乎Pinterest机器人确实能够访问我的网站,没有问题。

在检查站点“princessly.com”的访问日志时,我可以看到从“Pinterest”到站点“Princessly.com”的成功访问。请查看日志中的代码段。

======

194.103.189.40--[15 / Nov / 2016:03:32:31 -0600]“GET /skin/frontend/default/forest_fashion/images/bkg_btn_sprite.png HTTP / 1.1” 200 2503“http://www.princessly.com/skin/frontend/default/forest_fashion/css/styles.css”“Pinterest / 0.2 + http://pinterest.com/
194.103.189.40--[15 / Nov / 2016:03:32:31 -0600]“GET /skin/frontend/default/forest_fashion/images/tabs_border.gif HTTP / 1.1” 200 43“http://www.princessly.com/skin/frontend/default/forest_fashion/css/styles.css”“Pinterest / 0.2 + http://pinterest.com/
194.103.189.40--[15 / Nov / 2016:03:32:31 -0600]“GET /skin/frontend/default/forest_fashion/images/pager_bg.gif HTTP / 1.1” 200102“http://www.princessly.com/skin/frontend/default/forest_fashion/css/styles.css”“Pinterest / 0.2 + http://pinterest.com/

======

Is there any way I can find the name of the Pinterest bot That I can detect as HTTP USER AGENT?



从日志中,我可以看到Pinterest机器人标签是“Pinterest / 0.2 + http://pinterest.com”。

  1. Can we know if the requests made by Pinterest bot timed out?


我已经检查了Apache日志中记录了从中记录了Pinterest访问的IP地址,但找不到任何超时错误。

  1. How do we know if we block AWS requests?


经过检查,我看不到“Princessly.com”网站的任何阻止规则设置。我已经检查了该网站的.htaccess文件和robots.txt文件。现在,我已根据您提供的链接将AWS IP地址范围列入白名单。

您能否立即检查详细信息,并让我知道是否有Pinterest用户面板或其他详细信息,以便我们进行更深入的研究。

更新2

遵循@Mackan的建议,我创建了一些完全相同的基本页面,彼此之间完全相同,并带有正确的打开图形信息,并将它们上传到了几个不同的站点。我正在记录访问该页面的所有PHP用户代理:
  • 与Princessly.com在同一服务器上的站点

  • Site IP: 173.199.151.128

    http://www.princessly.com/ivory-lace-tulle-wedding-flower-girl-dress-with-sheer-neck-TEST123.php

    http://www.princessly.com/Pinterest_agents.txt



    -失败

    Site IP: 173.199.151.128

    http://www.usabledatabases.com/ivory-lace-tulle-wedding-flower-girl-dress-with-sheer-neck-TEST123.php

    http://www.usabledatabases.com/Pinterest_agents.txt



    -失败

    Site IP: 173.199.151.130

    http://www.bintley.com/ivory-lace-tulle-wedding-flower-girl-dress-with-sheer-neck-TEST123.php

    http://www.bintley.com/Pinterest_agents.txt



    -失败
  • 与Princessly.com不同的服务器

  • https://www.thedataplanet.com/ivory-lace-tulle-wedding-flower-girl-dress-with-sheer-neck-TEST123.php

    https://www.thedataplanet.com/Pinterest_agents.txt



    -成功
  • 与Princessly.com不同的另一台服务器

  • http://www.formkid.com/ivory-lace-tulle-wedding-flower-girl-dress-with-sheer-neck-TEST123.php

    http://www.formkid.com/Pinterest_agents.txt



    -成功

    在使用Rich Pin验证器进行测试之后,似乎是服务器问题。该请求永远不会到达Princessly.com服务器上所有站点的PHP文件。

    WiredTree的支持非常乐意帮助我找到罪魁祸首,但在调动了5名以上的支持人员之后,到目前为止,前景并不乐观。我们经历了.htaccess,Apache conf,modSecurity,防火墙,将Pinterest IP,AWS IP列入白名单的工作。

    这真的很奇怪。

    更新3

    甚至更奇怪的是,如果您查看http://www.princessly.com/Pinterest_agents.txt,也可以看到那里有“Pinterest / 0.2(+ http://www.pinterest.com/)”的独立条目。

    但是,如果给它一个manual test,它将失败并且根本不会记录访问。

    好像是断断续续的。

    这几乎是量子物理学 Realm 的事情,我不知道该怎么办,除了最后的选择是订购和配置新服务器,然后迁移Princessly.com在那里看看情况如何。

    你的想法?

    最佳答案

    使用https://developers.pinterest.com/tools/url-debugger/调试问题后,问题似乎出在服务器端。

    If you're seeing We weren't able to retrieve any data from your URL, then Pinterest may be timing out before we can create a Pin on your site. Unfortunately, this isn't something we can fix on our end, and usually happens when a site is slow. This error also appears if your site blocks Amazon Web Services (AWS) requests. You'll have to remove this block before applying for Rich Pins.



    创建一些“最小但有效”的页面并通过验证程序运行它们可以使问题更加清楚,但不幸的是无法解决。这可能是本地服务器(Apache)的问题,也可能是pinterest机器人的问题。

    Pinterest机器人似乎可以正常运行服务器,但验证程序无法解析或到达端点。由于最少的示例会在不到一秒钟的时间内返回,并且包含满足Pinterests要求的最低要求,因此很明显,问题不在您的代码内。

    将解决方案迁移到另一台主机似乎已解决了该问题。

    编辑

    新主机似乎工作得更好(使用最小示例之一):
    enter image description here

    关于html - Pinterest Rich Pin不起作用和验证器失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40570899/

    相关文章:

    javascript - 表格不发送电子邮件?

    html - 有一个奇怪的 css 问题,div 内的文本没有随 div 移动

    facebook - FB Open Graph 对象标识、对象 url 和应用域之间的关系?

    php - Facebook 有时不获取 Open Graph 标签

    javascript - Pinterest 和 Fancybox 之间的冲突

    javascript - Ant Design(antd)的分页和卡片组件?

    javascript - 我在 IE 11 中的视频标签 mp4 中收到音频/视频 : Unknown MIME type.

    html - 居中对齐弹出窗口

    linkedin - LinkedIn 上的 Open Graph 不适用于我客户的网站

    hyperlink - Pinterest 上的 Pin 图链接到 404 - 但链接有效