WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Opengraph - Weird Problem! (1 post)

  1. cashbagg
    Member
    Posted 2 years ago #

    This is my site: http://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=”http://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 http://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!!! :)

Topic Closed

This topic has been closed to new replies.

About this Topic