• Hello Just want to say first that I love this plugin! Everything works great except on issue I am having with the open graph api for Facebook. First off let me give you some info: I am using wordpress: 4.1, buddypress: 2.1.1, buddypress social: 2.0, and RTmedia (buddypress media): 3.7.24.

    Here is the exact issue I’m having. When I share a status to facebook that contains only a text status update everything shares correctly. But when I share a status that contains a media attachment (video, photo, or audio) open graph loses the status text and grabs a description from random text on the page. Usually a blog post that is listed in a widget on the page.

    Here are my current og meta tags that I have set up in header.php

    `<meta property=’fb:app_id’ content='[my_app_id]’/>
    <meta property=’og:locale’ content=’en_us’/>
    <meta property=’og:site_name’ content=’Musical Nexus’/>
    <?php if ( is_single() ) { ?>
    <meta property=’og:type’ content='[my_object_type]’ />
    <meta property=’og:title’ content='<?php wp_title(”); ?>’ />
    <meta property=’og:url’ content='<?php the_permalink(); ?>’ />
    <meta property=’og:image’ content='<?php echo wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>’ />
    <meta property=’og:description’ content='<?php the_excerpt(); ?>’ />
    <?php } elseif (bp_is_single_activity()) { ?>
    <meta property=’og:type’ content='[my_object_type]’ />
    <meta property=’og:title’ content='<?php wp_title(”); ?>’ />
    <meta property=’og:url’ content='<?php bp_activity_thread_permalink(); ?>’ />
    <meta property=’og:image’ content='<?php echo bp_core_fetch_avatar( array( ‘html’ => false ) ); ?>’ />
    <meta property=’og:description’ content='<?php bp_get_activity_content_body() ?>’ />
    <?php } ?>

    I do not currently have any SEO plugins installed, although I have tried many of the free ones and none have helped. As you can see I am trying to get the activity content body for the description but unfortunately that is not working. It is returning empty.

    I have been working on this for the past few days and am driving myself nuts! Somebody please help!!!

    Here is a link to my site Musical Nexus

  • The topic ‘Open graph not showing activity body’ is closed to new replies.