og:audio:artist和og:audio:album的工作示例 [英] Working example of og:audio:artist and og:audio:album

查看:113
本文介绍了og:audio:artist和og:audio:album的工作示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在共享页面URL时,有人可以识别一个<meta property="og:audio:artist"><meta property="og:audio:album">实际上正在设置艺术家和专辑的网页吗?

Can someone identify ONE WEB PAGE where <meta property="og:audio:artist"> and <meta property="og:audio:album"> are actually working to set the Artist and Album when sharing the URL of the page?

我一直在访问 http://www.coises.com/songs/sfcarol. htm 数小时,尝试尝试各种META标签,XML标签格式(即使它是HTML页面)的排列,等等.(注意:尽管我在页面上有一个本地共享按钮,谈论在Facebook本身的状态框中共享页面的URL作为测试用例.)

I have been banging away at http://www.coises.com/songs/sfcarol.htm for hours, trying every permutation of order of META tags, XML tag formats (even though it’s an HTML page), etc. (Note: though I have a home-grown share button on the page, I’m talking about sharing the URL of the page in the status box on Facebook itself as the test case.)

我所能获得的是标题中的所有单词都大写,即使未采用这种方式指定,并且Artist和Album始终是未知的. (对于另一首歌曲/页面,"8/9/95",甚至标题也不会显示.)尽管在发布的故事中确实会显示,但分享时也不会显示说明.

All I can get is that all words in the title are capitalized, even though it isn’t specified that way, and the Artist and Album are always Unknown. (For another song/page, "8/9/95", even the title won’t show.) The description also doesn’t show when doing the share, though it does show in the posted story.

我尝试搜索,并尝试了ReverbNation和SoundCloud之类的地方,但似乎没有人使用og:audio标签. (对于视频, http://www.coises复制视频,就像YouTube正常工作一样. com/songs/risingup.htm 作为示例.)如果我只能看到一个有效的示例,我怀疑我可以弄清楚.

I tried searching, and I tried places like ReverbNation and SoundCloud, but nobody seems to use the og:audio tags. (For videos, copying the way YouTube does it appears to work perfectly, http://www.coises.com/songs/risingup.htm being an example.) If I could see just one working example, I suspect I could figure it out.

推荐答案

我自己的歌曲页面(例如, http://www.coises.com/songs/floodplain.htm 和我网站上的其他大多数歌曲页面)现在都是有效的示例.

My own song pages (e.g., http://www.coises.com/songs/floodplain.htm and most other song pages on my site) are now working examples.

事实证明,问题很简单: og:audio:artist og:audio:album 不能工作,除非 og:audio:title ".我以为默认为 og:title ;似乎必须明确指定.

It turns out the problem was simple: og:audio:artist and og:audio:album do not work unless og:audio:title is also supplied. I had assumed that would default to og:title; it seems it must be explicitly specified.

短毛猫仍然说 og:audio:{title | artist | album} 标签是允许的,但它们可以工作.

The linter still says the og:audio:{title|artist|album} tags are not allowed, but they work.

这篇关于og:audio:artist和og:audio:album的工作示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆