php - Facebook Sharing Wordpress Page Not Found -


i'm having issues when sharing links website (boolerang) facebook. issue is: when share role, this:

screenshot

when go here facebook og object debugger , show existing information, says:

time scraped - 8 hours ago. response code: 404. critical errors must fixed: bad response code url returned bad http response code.

however, when "fetch new scrape information", updates, , link can shared in intended form forevermore, i.e.:

screenshot

these symptoms lead me believe issue not access-related, that's far get.

edit:

my robots.txt file looks - cause?

user-agent: * disallow: /wp-content/plugins/ disallow: /wp-admin/ disallow: /candidates disallow: /my-account disallow: /past-applications disallow: /manage-jobs disallow: /resume

please try first of code put in function.php

<?php  add_action('wp_head','add_meta_function'); function  add_meta_function(){     if(is_single()){         global $post;                echo '<meta property="og:url" content="'.get_permalink().'" />';         echo '<meta property="og:image" content="xyz/wp-content/uploads/2015/05/4569952.png" />';         echo '<meta property="og:title" content="'.get_the_title().'" />';           echo '<meta property="og:description" content="'.substr($post->post_content,0,100).'" />';     }  } ?> 

you use link http://www.sharelinkgenerator.com/ , generator facebook link

<a href="https://www.facebook.com/sharer/sharer.php?u=pass share link">share on facebook</a> 

example

<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo get_permalink(); ?>">share on facebook</a> 

or use

nice plugin share post,sec,etc https://wordpress.org/plugins/wordpress-seo/ read guide after user link

<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo get_permalink(); ?>">share on facebook</a> 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -