使用 facebook 的 url 打开图形元标记

发布于 2025-01-03 13:12:14 字数 443 浏览 4 评论 0原文

我有一个 iframe 选项卡,其中我的开放图 url 标记为

我在该 iframe 中有一个评论框,显示以下错误: 警告: http://example.com/linktofolder 是无法到达。

我已经在 facebook 应用程序设置上设置了所有信息,如应用程序域、画布 url、命名空间等。当我通过 facebook 调试器放置链接时,出现以下错误:错误抓取页面:Facebook 无法自行抓取。对不起!

我已经有一个页面,其中我的 og:url 标签定向到 Facebook 页面,并且工作正常。

I have a iframe tab where my open graph url tag is <meta property="og:url" content="http://www.facebook.com/myfacebookpageusername"/>.

I have a comment box in that iframe that displays following error: Warning: http://example.com/linktofolder is unreachable.

I have set up all the info on facebook application setup like app domain, canvas url, namespace and etc. When I put link through facebook debugger I get following error: Error Scraping Page: Facebook Can't Crawl Itself. Sorry!

I already have one page where my og:url tag is directed to facebook page, and it works fine.

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

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

发布评论

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

评论(1

半仙 2025-01-10 13:12:14

您应该使用 href 评论社交插件(或 data-href,取决于您嵌入评论的方式)到可公开访问的真实 URL。

此外,您还应该注意指定 og:url 意味着将抓取此页面而不是具有该元标记的页面。

You should use href for Comments Social plugin (or data-href, depends on way you embed the comments) to real URL that is publicly accessible.

Also you should be aware of the fact that specifying og:url means that this page will be crawled instead of the page you have that meta tag.

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