WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Like Button
Property og:description not working good (8 posts)

  1. Wiki Chaves
    Member
    Posted 3 years ago #

    Hi,

    I'm using FB Like Plugin and I'm having troubles with the OG Description meta tag.

    In my blog instead of using the_excerpt(); the property is using the_title(); I've checked the code and seems OK, but for some reason is not working.

    If you take a look at this post you will see

    http://www.channelship.ie/blog/post-2524-social-media-for-b2b.php

    <meta property="og:description_BKP" content="Social media for B2B"/>

    I have to add the "_BKP" to cancell the property since it was generating problems when I've shared it, but you can see that is the property is not using the_excerpt() but the_title()

    Any Idea ?

    Thanks.
    Wiki

  2. perbeppo
    Member
    Posted 3 years ago #

    I have the same problem.

  3. Wiki Chaves
    Member
    Posted 3 years ago #

    Hi, any news about this ?

  4. Ahmed Hussein
    Member
    Plugin Author

    Posted 3 years ago #

    Working on it...

  5. Mike McKoy
    Member
    Posted 3 years ago #

    Hey was this ever resolved? I'm having the same issue. Is there a way to clear it?

  6. Wiki Chaves
    Member
    Posted 3 years ago #

    hmm, i don't think so :(

  7. dszabo
    Member
    Posted 3 years ago #

    Helo,

    Is there a solution for this problem?

    Thanks.

  8. Aahan Krish
    Member
    Posted 3 years ago #

    SOLUTION: Use this plugin instead http://wordpress.org/extend/plugins/facebook-opengraph/

    It's not mine, and I had the same problem too. But it was easier to get it to work.

    Once you download the plugin's archive file, extract it, open index.php inside the folder.

    In about line 18 (commented //Description) you will find this:
    $parametros[]= substr(strip_tags(get_the_content()), 0, 250)." ..." ;

    Change it to:
    $parametros[]= substr(get_the_excerpt(), 0,160)."..." ;

    NOTE: Change 160 to the no. of characters you want your description to show.

    It worked for me, it may or may not work for you. But I hope that helps someone with similar issues. Cheers!

    I actually answered it here: http://wordpress.org/support/topic/plugin-facebook-open-graph-meta-in-wordpress-open-graph-description?replies=2#post-2219809

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic