在Open Graph业务对象类型中使用运营时间

时间:2013-09-14 22:51:31

标签: opengraph facebook-opengraph

如何正确添加属于Facebook Open Graph meta tags for the business object property的工作时间的标记?

例如,我如何代表以下营业时间:周一至周五:上午9点至下午5点?

1 个答案:

答案 0 :(得分:5)

要在Open Graph元标记中包含周一至周五:上午9点至下午5点,您需要在其自己的群组中标记每天,如下所示:

<meta property="business:hours:day" content="monday" />
<meta property="business:hours:start" content="09:00" />
<meta property="business:hours:end" content="17:00" />
<meta property="business:hours:day" content="tuesday" />
<meta property="business:hours:start" content="09:00" />
<meta property="business:hours:end" content="17:00" />
<meta property="business:hours:day" content="wednesday" />
<meta property="business:hours:start" content="09:00" />
<meta property="business:hours:end" content="17:00" />
<meta property="business:hours:day" content="thursday" />
<meta property="business:hours:start" content="09:00" />
<meta property="business:hours:end" content="17:00" />
<meta property="business:hours:day" content="friday" />
<meta property="business:hours:start" content="09:00" />
<meta property="business:hours:end" content="17:00" />

小时(business:hours:startbusiness:hours:end)的属性标记可以采用以下任何格式编写:

下午1点的例子

  • 13:00(24小时制)
  • 下午1:00(12小时制,句号为大写)
  • 下午1:00(12小时制,周期小写)

一天必须至少包含三个字段:

  • business:hours:day
  • business:hours:start
  • business:hours:end