Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #343473

    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?

    #344489

    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

    #344825

    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.

    • This reply was modified 10 years ago by eyeweb.
    #345698

    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

    #345774
    This reply has been marked as private.
    #346932

    Hi!

    Thank you for the update.

    The og:type property is properly rendered on the page but I’m not sure why the error still exists. Please try to switch to a default theme then test the page again on the fb debugger. Let us know if it still shows the error.

    Regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.