- 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_id
Şuan sitelerimdeki og kodları aşağıdaki gibi.
<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" />
[COLOR=#4B4F56][COLOR=#000000][FONT="Open Sans"][/FONT][/COLOR][/COLOR]<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];} ?>" />