我在HTML页面的head标签中获得了所有这些行。我想根据网址在社交媒体上共享图像时更改图像。
我已经创建了一个函数,以在url与某个字符串匹配时更改meta标签。
现在,我想知道是否只需要更改一个元标记,还是只更改所有的元标记,包括Twitter和Facebook?这是我代码中的当前meta标签:
<meta property="og:image" content="http://carrieres.mywebsite.com/static/img/opengraph-fr.jpg">
<meta property="og:image:url"
content="http://carrieres.mywebsite.com/static/img/opengraph-fr.jpg">
<meta property="og:image:secure_url" content="https://carrieres.mywebsite.com/static/img/opengraph-fr.jpg">
<meta name="twitter:image:src" content="https://carrieres.mywebsite.com/static/img/opengraph-fr.jpg">
我需要更改哪些?我想确定要在我的本地环境上进行分期之前,我无法测试在社交媒体上共享时是否起作用