Facebook Opengraph – Weird Problem!
-
This is my site: https://www.soothetube.com
I was not getting any thumbs, titles, or exerpt when posting my links from my blog to FB.
I tried numerous plugins with little success. In the end I modified my header with this:
<meta property=”fb:admins” content=”MY ID”/>
<meta property=”og:site_name” content=”SootheTube.com”/>
<meta property=”og:image” content=”https://www.soothetube.com/wp-content/uploads/2011/08/logo.gif”/>
<!– custom dynamic PHP header for Facebook Open Graph like-button implentation. Conditional statements allow for dynamic title and URL generation, and customizable descriptions and content types for home page and child pages. 2011 CWS – author URL https://carlnash.com/cws –>
<?php if (is_front_page()) : ?>
<meta property=”og:type” content=”website”/>
<meta property=”og:description” content=”Welcome to SootheTube. We have relaxing videos to help you sleep, and relieve stress.”/>
<meta property=”og:title” content=”SootheTube – The Most Relaxing Site On Earth!”/>
<?php elseif (is_single() || is_page()) : ?>
<meta property=”og:type” content=”blog”/>
<meta property=”og:title” content=”<?php the_title(); ?>”/>
<meta property=”og:url” content=”<?php the_permalink(); ?>”/>
<meta property=”og:description” content=”<?php the_excerpt();?>”/>
<?php elseif (!is_front_page() && !is_single() && !is_page()) : ?>
<meta property=”og:title” content=”<?php echo trim(wp_title(”, false)); ?>”/>
<?php endif ?>If I post to FB, some posts work, but most don’t at all…or the thumb is wrong. It’s bizarre. Why would some work and most don’t!?? I’m at my wit’s end with this. Someone pls save me!!! ??
- The topic ‘Facebook Opengraph – Weird Problem!’ is closed to new replies.