What markup should I use to describe social media links using schema.org?

喜欢而已 提交于 2019-12-05 22:21:58

There is a proposal for a socialAccount property (and another one), and an older discussion about an account property. The relevant issue on Schema.org’s GitHub is Social account proposal (no comments yet).

But these properties are not there yet (if they’ll come at all).

Of the currently available properties, url, sameAs, and contactPoint come to mind:

  • url could be used if that’s the (only) URL of the entity
  • sameAs could be used if the social media account represents/identifies exactly the same entity (organization, person, etc.)
  • contactPoint could be used if the social media account allows contacting the entity
<div itemscope itemtype="http://schema.org/Organization">
  <link itemprop="url" href="http://www.your-company-site.com"> 
  <a itemprop="sameAs" href="http://www.facebook.com/your-company">FB</a>
  <a itemprop="sameAs" href="http://www.twitter.com/YourCompany">Twitter</a>
</div>

https://developers.google.com/webmasters/social-markup/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!