必须将 fb:admins 元标记添加到中吗?网站/域的每个页面的部分,还是仅主页(根)?

发布于 2025-01-08 11:49:09 字数 589 浏览 3 评论 0原文

有关 Facebook Insights 元标记实施的问题。

必须将 fb:admins 元标记添加到网站/域的每个页面的部分,或者主页(根)?

Insights 文档似乎很清楚:

网站所有者必须将验证元标记添加到 部分 域的根网页。

然而,我检查了许多主要网站(《悉尼先驱晨报》、《纽约时报》、《卫报》、《Mashable》),实施情况各不相同。

有些网站的主页上既没有 fb:admins 标签,也没有 fb:app_id,但在后续页面上至少使用其中一个标签。

在其他网站上,这两个标签都出现在所有页面上。

那么...

  • fb:admins 标签应该仅添加到主页,还是添加到所有页面 页数?
  • 如果 fb:admins 标签出现在所有页面上会有问题吗?

A question regarding the implementation of Facebook Insights metatags.

Must the fb:admins metatag be added to the <head> section of EVERY page of a website/domain, or ONLY the homepage (root)?

The Insights documentation seems clear:

Website owners must add a verification metatag to the <head> section
of the root webpage of a domain.

However, I've checked a number of major sites (Sydney Morning Herald, NY Times, Guardian, Mashable) and implementation varies.

Several sites have neither the fb:admins tag nor the fb:app_id on their homepage, but use at least one of the tags on the following pages.

On other sites, both tags are present on ALL pages.

So...

  • Should the fb:admins tag be added only to the homepage, or to ALL
    pages?
  • Is it a problem if the fb:admins tag is on all pages?

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

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

发布评论

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

评论(1

月竹挽风 2025-01-15 11:49:09

视情况而定。

如果您只想访问 Insights for Domains,则只需位于根页面即可。这样 Facebook 就可以 ping http://www.example.com/ 并向列出的用户提供见解访问权限那里。

如果您使用开放图谱,您将希望在可能最终出现在开放图谱中的每个 URL 上使用此标签(例如按钮、自定义操作等),以便您被列为这些对象的管理员。

此外,我根本不建议使用 fb:admins 标签。相反,我建议您创建一个应用程序,并添加包含您的应用程序 ID 的 fb:app_id。这样,当您的站点或组织中的人员发生变化时,您只需添加他们或将他们从应用程序的开发人员角色中删除,他们就会获得或失去成为您的域管理员的访问权限。否则,您几乎会陷入第一天添加的用户 ID 的困境。

Depends.

If you just want access to Insights for Domains, it just has to be in the root page. This is so Facebook can ping http://www.example.com/ and give insights access to the users listed there.

If you're using Open Graph, you'll want this tag on every URL which could possibly end up in the Open Graph (like buttons, custom actions etc) so that you're listed as the admin of those objects.

In addition, I don't recommend using the fb:admins tag at all. Instead, I suggest you create an application, and add an fb:app_id containing your app id. This is so that, as the people in your site or organisation change, you just add them or remove them from the developer roles of your application, and they'll gain or lose access to be an admin of your domain. Otherwise, you're pretty much stuck with the user IDs you add on day one.

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