即使可以从其他标签推断出值,也应如何明确提供“ og:image”属性呢?

我正在使用Yoast SEO。在检查中,显示og:url,og:type,og:title,og:image,og:description的元标记。但在Facebook上分享帖子时仍未呈现。在使用Facebook开发人员的调试工具进行测试时,它会显示以下警告:

Can't Download
Could not resolve the hostname into a valid IP address.
Inferred Property
The 'og:image' property should be explicitly provided,even if a value can be inferred from other tags.
Missing Properties
The following required properties are missing: og:url,og:type,og:title,og:image,og:description,fb:app_id

我的HTaccESS:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# php -- BEGIN cPanel-generated handler,do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler,do not edit
yuanxiao_001 回答:即使可以从其他标签推断出值,也应如何明确提供“ og:image”属性呢?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3159834.html

大家都在问