Facebook and Twitter Open Graph Problem
-
First of all, hello.I’m sorry for my bad English. I am having open graph problems on two of my websites. While Open graph was working on Facebook and Twitter before, it has not been working for the last week. When I check it from Facebook Developers, I get the following errors for both sites.
Inferred Property
The ‘og: image’ property should be explicitly provided, even if a value can be inferred from other tags.
Missing Properties
The following required properties are missing: og: url, og: type, og: title, og: image, og: description, fb: app_idThere is nothing I haven’t tried in the last 1 week. I did not add Open graph tags again. Some foreign forums have mentioned that caching plugins and SEO plugins conflict, but I disabled them as well, but still didn’t. I use Litespeed as caching. I was using YOAST for SEO before 2-3 weeks ago. In some places, they also said that it may originate from YOAST. But now I use All in SEO for SEO. I also use the free version CDN (Cloudflare). I removed Litespeed, All in SEO and CDN to try it out, but my problem still persists. I also use the Really Simple SSL plug-in. Does it affect this? I think the same problem on my two sites is because I use the same plugins, but I haven’t gotten anywhere. I would be glad if you could help.
The og codes on my sites are as follows.
<meta property="og:url" content="<?php the_permalink(); ?>" /> <meta property="og:title" content="<?php the_title(); ?>" /> <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> <meta property="og:image:type" content="image/jpeg" /> <meta property="og:image" content="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); echo $resimyolu[0];} ?>" /> <meta property="og:image:secure_url" content="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); echo $resimyolu[0];} ?>" /> <meta property="og:image:width" content="760" /> <meta property="og:image:height" content="405" /> <meta property="og:image:alt" content="<?php the_title(); ?>" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="<?php the_title(); ?>" /> <meta name="twitter:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> <meta name="twitter:url" content="<?php the_permalink(); ?>" /> <meta name="twitter:image" content="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); echo $resimyolu[0];} ?>" /> <?php } else { ?> <meta property="og:site_name" content="<?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?>" /> <meta property="og:description" content="<?php bloginfo('description'); ?>" /> <meta property="og:image" content="<?php echo ($tema_ayarlar['logo']!='') ? $tema_ayarlar['logo']: $temayolu.'/images/logo.png';?>" /> <meta property="og:type" content="article" /> <meta property="og:locale" content="tr_TR" /><meta name="twitter:image" content="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'sliderResim'); echo $resimyolu[0];} ?>" /> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="<?php the_title(); ?>"> <meta property="og:title" content="<?php the_title(); ?>" /> <meta property="og:url" content="<?php the_permalink(); ?>" /> <meta property="og:image" content="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'sliderResim'); echo $resimyolu[0];} ?>" />The page I need help with: [log in to see the link]
The topic ‘Facebook and Twitter Open Graph Problem’ is closed to new replies.