Facebook share doesn't fetch Meta Properties
-
Hello, great job on the plug-in.
I have a problem though, before the new update I was able to share on facebook with the description and image I wished to use via Meta Property tags on the head.php, now the information shared is beeing picked automaticly, ignoring my definitions.
This is my web page on a post I am trying to share : https://ati.ismt.pt/wordpress/?p=76
This is my head.php code:
?><!DOCTYPE html> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width" /> <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="og:image" content="https://ati.ismt.pt/wordpress/wp-content/uploads/2013/05/ismtLogo2.jpg" />
I though this would be an og: problem, so I visited this og checker : https://ogp.spypixel.com/Pogo/checker/index.php and I got the following errors:
4 problems found (combined results).
og_namespace_undeclared – Document uses but does not declare the og: namespace. Couldn’t find xmlns:og in the document.
missing_required_property – One or more required properties (og:title, og:type, og:url, og:image) are missing. No data found; empty graph.
failed_read_url Failure reading from URL – No page content, perhaps a problem reading URL.
no_page_content – Page seems to be empty. No page content.This is really weird and I can’t find a way to fix this. Thanks for your time.
- The topic ‘Facebook share doesn't fetch Meta Properties’ is closed to new replies.