Facebook Like 按钮昨天在某些页面上突然停止工作
我们的一些 Facebook 应用程序(的某些 URL)上的 Like 按钮昨天(大约 18 小时前)突然(显然)重置为零,并且不再计数。也就是说,如果您喜欢该 URL,它会短暂显示 1,然后重置。
抱歉,如果这听起来像一个熟悉的问题,但我确实花了几个小时检查这里和互联网其他地方的所有类似问题,遵循相关建议,但都无济于事。
最主要的是,“赞”按钮已经工作了数天、数周或数月(具体取决于应用程序),然后突然停止了。
每个 URL 都会经过 linter (https://developers.facebook.com/tools/lint)没有检测到任何问题 - 是的,生成的页面有一个 fb:app_id 标签,有所有必需的 og: 标签,甚至有一个规范的 URL。
然而,在 linter 底部生成的“赞按钮”的执行方式与我们网站上的完全相同 - 它会短暂地滑动到“1”,然后显示“错误”,并且弹出帮助窗口建议我使用 linter。 ;-)
这是一个“问题”URL 示例: http://apps.facebook.com/winningsmiles/likeit
如果您通过 linter 运行此命令,看起来没有什么问题。但是,“赞按钮”不起作用。
如果您单击页面的“图形 URL”(http://graph.facebook.com/?id=http://apps.facebook.com/winningsmiles/likeit),您会注意到该网址有 50 次“分享”(即点赞)以至于它停止工作。所以它确实起作用了。
几个重要的细节:
- URL 重写,使 URL 变得“更友好”。如果我用完整文件名检查 URL - 将“.aspx”添加到上面的 URL(抱歉,我没有足够的“声誉”来发布另一个 URL;-)- 然后“喜欢”按钮'可以成功使用;但当然,与 Facebook 不是同一个 URL(图 id),因此无法吸收我们迄今为止使用的 URL 的计数;
- 上面的 URL 是应用程序本身的“赞”URL。整个网站都有用户发布的内容,Facebook 用户有机会喜欢每个帖子。与每个帖子关联的“赞”按钮正在工作,例如: http://apps.facebook.com/winingsmiles/likeit/2/951 需要注意的是,这使用与主“Like”完全相同的服务器页面,并生成相同的 HTML 和 og: 标签,当然除了 og:url 和 canonical 之外。
关于应用程序托管环境的一些技术评论...
- 应用程序是用 ASP.NET 编写的;
- 我测试过的三个应用程序,其中主“赞”按钮已停止工作,全部位于同一物理域 (panasonic.communicates.to) 和 Web 服务器上;
- 该域名尚未在 https 上 - 这将在 10 月 1 日之前发生,但我不认为这应该是它现在失败的正当理由。
问题似乎不是内容,而是某些 URL 突然被主动阻止点赞。
The Like button on (some URLs of) a few of our Facebook apps suddenly (apparently) reset to zero yesterday (about 18? hours ago), and will no longer count. That is, if you Like the URL, it shows 1 for a brief instant and then resets.
Sorry if this sounds like a familiar question, but I have literally spent hours checking all similar questions on here and the rest of the interweb, followed relevant suggestions, all to no avail.
The main thing is that the Like buttons have worked for days, weeks or months - depending on the app - and suddenly, they have stopped.
Each URL passes through the linter (https://developers.facebook.com/tools/lint) with no problems detected whatsoever - yes, the resultant page has a fb:app_id tag, has all the required og: tags, even has a canonical URL.
However, the generated 'Like button' at the bottom of the linter performs exactly the same way as it does on our site - it flicks to '1' briefly, then shows 'Error' and the help popup suggests I use the linter. ;-)
This is an example 'problem' URL:
http://apps.facebook.com/winningsmiles/likeit
If you run this through the linter, nothing appears to be amiss. However, the 'Like button' does not work.
And if you click on the 'Graph URL' for the page (http://graph.facebook.com/?id=http://apps.facebook.com/winningsmiles/likeit), you will notice that this URL had 50 'shares', i.e. likes, up to the point that it stopped working. So it did work.
A couple of important sidelights:
- There is URL rewriting in place, to make the URL 'friendlier'. If I lint the URL with the full filename - add '.aspx' to the URL above (sorry, I don't have enough 'reputation' to post another URL ;-) - then the 'Like button' can be successfully used; but of course, is not the same URL (graph id) to Facebook, so cannot absorb the count of the URL that we have been using up to now;
- The above URL is the 'Like' URL for the app itself. There is user-posted content throughout the site, and Facebook users have the opportunity for liking each post. The Like button associated with each post is working, e.g.:
http://apps.facebook.com/winningsmiles/likeit/2/951
Important to note that this uses exactly the same server page as the main 'Like', and produces identical HTML and og: tags, apart from og:url and canonical of course.
Just a few technical remarks about the app hosting environment...
- the apps are written in ASP.NET;
- the three apps that I have tested, where the main Like button has stopped working, all sit on the same physical domain (panasonic.communicates.to) and web server;
- the domain is not yet on https - that will happen before Oct 1, but I don't believe that should be a valid reason for it to fail now.
It seems like it's not the content that's the issue, but certain URLs are suddenly actively being blocked from being Liked.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论