Open Graph tags for Facebook
-
My WordPress links have just stopped working on Facebook. They were working fine up until a few days ago. I checked them on the Facebook debugger and it comes up with the following warnings:
The ‘og:url’ property should be explicitly provided, even if a value can be inferred from other tags.
The ‘og:title’ property should be explicitly provided, even if a value can be inferred from other tags.
The ‘og:description’ property should be explicitly provided, even if a value can be inferred from other tags.I’ve tried added the following code to my header, but it hasn’t made a difference:
<meta property="og:title" content="<?php get_post; ?> <meta property="og:url" content="<?php get_page_link; ?> <meta property="og:description" content="<?php the_excerpt(); ?>
Any ideas?
Also has anyone come across this before or know why it seems to have suddenly become a problem?
Links here:
- The topic ‘Open Graph tags for Facebook’ is closed to new replies.