Facebook og:type 元标签 - 我应该自己编写吗?

发布于 2025-01-05 12:14:12 字数 699 浏览 5 评论 0原文

我将所需的元标记放入我的页面中,并且我有一个从 facebook 文档中保存的列表,网址为 https:// Developers.facebook.com/docs/opengraph/#types

两个问题。一是我的业务类型清单总共是:

  • 酒吧、
  • 公司
  • 、咖啡馆
  • 、酒店
  • 、餐厅,

这有点疯狂。世界上每种类型的商业实体都可以归类为这五种事物之一?连“商店”都没有吗?

该列表已通过以下页面确认:http://www.netmagazine.com/tutorials/optimise-your- website-facebook 但我的第二个问题是,Facebook 似乎不再提供列表。文档说它是一个月前更新的。

该教程做出了有趣的承诺,“Facebook 表示将积极监控最常用的类型,并在适当的时候将它们添加到支持的 og:types 列表中。”所以看来我可以自己编造,说“商店”或“超市”,这不会是一个错误。

弥补我自己有什么好处或坏处? Facebook 使用这些元数据有何用途?

I'm putting the required meta-tags into my pages and I have a list I saved from facebook's documentation at https://developers.facebook.com/docs/opengraph/#types

Two problems. One is that my list of business types is, in total:

  • bar
  • company
  • cafe
  • hotel
  • restaurant

which is a little crazy. Every type of commercial entity in the world can be categorised as one of those five things? There's not even "store"?

That list is confirmed by this page: http://www.netmagazine.com/tutorials/optimise-your-website-facebook but my second problem is, Facebook no longer seems to be providing a list at all. The documentation says it was updated a month ago.

The tutorial holds out the interesting promise that "Facebook says that it will actively monitor the most commonly used types and add them to the list of supported og:types in due course." so it seems I can make up my own, say "store" or "supermarket" and that won't be an error.

What good or harm will it do to make up my own? What does Facebook use this metadata for anyway?

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

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

发布评论

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

评论(1

肥爪爪 2025-01-12 12:14:12

根据您提供的 .NET 链接文章,您可以使用以下类型:

活动

activity
sport

企业

bar
company
cafe
hotel
restaurant

cause
sports_league
sports_team

组织

band
government
non_profit
school
university

人物

actor
athlete
author
director
musician
politician
profile
public_figure

地点

city
country
landmark
state_province

产品和娱乐

album
book
drink
food
game
movie
product
song
tv_show

网站

article
blog
website

现在,该列表当然是有限的,但您可以通过以下方式使其保持通用陈述类似的事情og:type="website" - 将网站声明为类型可能听起来很愚蠢且明显,但请记住,网络不仅仅是网页 - 还有各种媒体可供使用。

或者,正如您提到的,自己制作。如果您对此很明智并指定诸如 og:type="ecommerce" 之类的内容,随着时间的推移,这可能会成为其他人正在使用的内容,并因此成为流行的选择;希望它能被采纳。如果没有,那么就不会造成任何实际伤害。

事实上,你在那里放什么并不重要,我怀疑 Facebook 只指定这些类型,因为它想知道它在广告活动中使用什么。

但 Facebook 并不是唯一使用这些标签的媒体,因此不要仅限于他们的方法。最好保持逻辑和合理。

希望这有帮助。

According to the .NET link article you provided, these are the types you can use:

Activities

activity
sport

Businesses

bar
company
cafe
hotel
restaurant

Groups

cause
sports_league
sports_team

Organizations

band
government
non_profit
school
university

People

actor
athlete
author
director
musician
politician
profile
public_figure

Places

city
country
landmark
state_province

Products and Entertainment

album
book
drink
food
game
movie
product
song
tv_show

Websites

article
blog
website

Now, the list is limited of course, but you can keep it generic by stating something like og:type="website" - it may sound stupid and obvious stating website as the type, but remember tht the web isn't just about web pages - there are all sorts of media to consume.

Or, as you mention, make up your own. If you're sensible about it and specify something like og:type="ecommerce", over time, this may be something others are using and will therefore become a popular choice; with the hope it becomes adopted. If it doesn't, then there's no actual harm that can come of it.

In reality, it doesn't matter what you put there and I suspect Facebook only specifies these types because it wants to know what it's working with for its advertising activities.

But Facebook isn't the only medium that will use these tags, so don't be locked into their methods only. It's best to keep it logical and sensible.

Hope this helps.

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