Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter angelosbg

    (@angelosbg)

    When I checked in the object debugger of facebook I got the following message: Like Button Warnings That Should Be Fixed
    Admins And App ID Missing fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed story that generates a high click-through rate.

    I guess I have to change the function.php file and put the following function:

    function wpc_fb_opengraph() {
    $wpc_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’);
    ?>
    <meta property=”og:title” content=”<?php the_title(); ?>” />
    <meta property=”og:url” content=”<?php the_permalink(); ?>” />
    <meta property=”og:site_name” content=”<?php bloginfo(‘name’); ?>” />
    <meta property=”og:description” content=”<?php echo strip_tags(get_the_excerpt($post->ID)); ?>” />
    <meta property=”fb:app_id” content=”APP ID HERE”>
    <meta property=”fb:admins” content=”YOUR FB USER ID (OR USERNAME) HERE”/>
    <meta property=”og:image” content=”<?php echo $wpc_image_url[0] ?>”/>
    <?php }

    add_action(‘wp_head’, ‘wpc_fb_opengraph’);

    The thing is that I do not know where exactly, in which line. Can anyone help? I guess this is an easy question for an experienced.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    For what happened ver the weeknd, it was a Facebook-wide issue:

    https://techcrunch.com/2013/03/25/facebook-comments-bug/

    Jetpack takes care of App ID. The code that you have there seems to be custom code that is likely overwriting what Jetpack adds to the page. Try commenting out the add_action to see if things work better:

    //add_action('wp_head', 'wpc_fb_opengraph');

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook like count disappear on article’ is closed to new replies.