Hi,
I am trying to check Open Graph Object Debugger with:
https://developers.facebook.com/tools/debug
I am receiving a message:
Could not resolve the hostname into a valid IP address.
The ‘og:type’ property is required, but not present.
I have enabled the option of social in Yoast plugin.
Also added this code to functions.php as recommended here:
if(!function_exists(‘avia_wpseo_change_init_priority’))
{
function avia_wpseo_change_init_priority()
{
remove_action(‘template_redirect’, ‘wpseo_frontend_head_init’, 999);
add_action(‘template_redirect’, ‘wpseo_frontend_head_init’, 9);
}
add_filter(‘init’,’avia_wpseo_change_init_priority’, 20);
}
Still the problem consists.
What should I do?
Hey eyeweb!
Thank you for using Enfold.
Please remove the filter hooks. It’s not needed anymore if you’re using Enfold 3.0.2. Please try to use this plugin to add fb open graph protocols: https://wordpress.org/plugins/wp-open-graph/
Regards,
Ismael
Hi Ismael,
After I install this plugin should I obviously disable the open graph from the Yoast plugin?
BTW, this plugin messed up my whole WordPress admin :-(
Thank you.
Hi!
Can you please provide a link to the actual post where og:type meta property is not present? The open graph settings on Yoast should be enough. Deactivate the plugin that we suggested then use Yoast. Go to SEO > Social then enable the Add Open Graph meta data option.
Best regards,
Ismael