Facebook 分享按钮返回错误

发布于 2024-12-05 14:28:45 字数 1077 浏览 0 评论 0原文

示例网址:

http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily- tonga-beat-japan&src=sp

这是 Share JS 生成的内容。如果您访问链接(解码后):

[...].com/2011/09/2124/rugby-world-cup-daily-tonga-beat-japan

您可以查看源代码并查看开放图元标签。

如果分享网址更改为:

[...].com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan2&src=sp

(在网址末尾添加 2)结果很好。与其他帖子类似:

http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2119%2Frugby-world-cup-daily- christchurch-revisted&src=sp

所以我得到的只是“错误”,无法知道发生了什么 错误的。

任何见解都会很棒。有人认为该网址已被 FB 标记或禁止,但无法判断。

使用 [...] 是因为我不能使用超过 2 个 url。

Example url:

http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan&src=sp

That's what's generated by the Share JS. If you visit the link (after decoding):

[...].com/2011/09/2124/rugby-world-cup-daily-tonga-beat-japan

You can view source and see open graph meta tags.

If the share url is changed to:

[...].com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan2&src=sp

(Adding a 2 to the end of the url) the result is fine. Likewise with other posts:

http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2119%2Frugby-world-cup-daily-christchurch-revisted&src=sp

So all I'm getting is "Error" with no way of knowing what went wrong.

Any insight would be great. A thought was that the url was flagged or banned by FB but no way to tell.

[...] is used cause I can't use more than 2 urls.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里南柯 2024-12-12 14:28:45

我在 Facebook 开发者调试页面中重新链接了您的 URL:

http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup- daily-tonga-beat-japan%2F

现在看起来工作正常。 Facebook 会缓存从页面获取的数据,因此他们很可能在页面出现错误消息而不是正常内容期间访问您的页面。

I re-linted your URL in the Facebook developer debug page:

http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan%2F

and it appears to work fine now. Facebook caches the data obtained from a page, so it's likely they hit your page during a period in which it had an error message instead of the usual contents.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文