• Hi, I’m really hoping someone can help me find a solution…have searched online for 3 hours with no luck. My Hosted WP 3.3 blog is sharing a specific post instead of the main URL. This happens whether I use FB itself, Sharethis or Hootsuite. Can anyone advise on how to resolve? The site is https://ideafaktory.com

    Thinking one of my plugins might be the culprit, but can’t really tell. FB debugger gives a canonical URL scrape error, but it’s like reading Aramaic. Here are the results, in case you know what it means: https://developers.facebook.com/tools/debug/og/object?q=www.ideafaktory.com

    Please let me know if you need additional info.

    Thanks so much for the help!!

Viewing 14 replies - 1 through 14 (of 14 total)
  • If you only need a fb share for the whole site, and not specific items, you can use the code provided by facebook developer, just specify the url of the homepage:
    fbshare

    Thread Starter UltimateSites

    (@ideafaktory)

    Thanks for the response. I am using very similar share code directly from FB to generate my Like widget. The link you sent seems to be a variation on that. It still doesn’t solve the canonical issue identified in FB debugger. That still needs to be fixed somewhere on my WordPress. Even if someone isn’t on my site and pastes my homepage URL in their FB share box, a link to a single post, instead of to the whole site comes up in the preview box. That is what I could use help with.

    yikes, that’s odd, I tried it on my fb wall, seems to always show that last post too “Five Ways Microsoft can Defeat iPhone and Android”. Like it’s forcing the last article on your home page blog. However it is your home page, but I imagine it should show your logo?
    There’s never an option to select the thumnail either.

    Thread Starter UltimateSites

    (@ideafaktory)

    Yes, it’s the strangest error! Plus, that’s not even the latest post. I’ve had many since then. Still, it should be defaulting to the main URL, not a post, even if it’s recent. Has something to do with that debugger error. I just don’t know how to apply a fix.

    this is a tough one, not much info on it. I did find that someone fixed a similar problem (wouldn’t show blog title) by changing their header.php meta to:
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    Maybe worth a try.

    Thread Starter UltimateSites

    (@ideafaktory)

    Thanks for looking into it! I’m reluctant to screw around with php files until I get an exact diagnosis. These band-aid solutions have a way of backfiring down the road.

    As you wish, good luck to you ??

    I’m having this same exact error. Tried pasting the http-equiv meta element, but to no avail. I’m creating a new post now, to see if it clears the problem.

    Nope. That didn’t fix it. Now it is just redirects to the new post, unlike ideafaktory. Any thoughts?

    btw, here is my og code:

    `<meta property=”og:title” content=”<?php the_title(); ?>”/>
    <meta property=”og:description” content=”<?php
    if ( is_singular() ) { echo the_excerpt(); }
    else { print ‘The Online Magazine for sailors looking for awesome stuff.’;}
    ?>”/>
    <meta property=”og:url” content=”<?php echo the_permalink(); ?>”/>
    <meta property=”og:image” content=”<?php
    if (is_singular()) { wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ”, ” ); }
    else { echo “https://www.lazysheet.com/wp-content/uploads/2011/12/logoforfacebook.jpg&#8221;;}
    ?>”/>
    <meta property=”og:type” content=”<?php
    if (is_singular()) { echo “article”; }
    else { echo “website”;}
    ?>”/>
    <meta property=”og:site_name” content=”<?php bloginfo(‘name’); ?>”/>
    <meta property=”fb:admins” content=”17824777″ />
    <meta property=”fb:app_id” content=”172336539528722″ />`

    Thread Starter UltimateSites

    (@ideafaktory)

    Follow-up to my prior post. I found the problem. It was due to the wrong data in the Facebook OpenGraph plugin, which I deleted and all works fine.

    The Yoast WordPress SEO plug-in seems to have similar functionality without the error.

    Hope that helps.

    Good show, although I thought the fb developer code was producing the same problem, in fact when I pasted a link to your site in my fb page it showed the post url. Go figure.

    Thread Starter UltimateSites

    (@ideafaktory)

    You’re right!! That just happened! It was working Must be a new plugin I added. Looking into it now. It never ends. Never thought I’d say this, but I miss Blogger.

    I have the same issue. I’ve checked my code. The debugger gives me the correct info, but clicking the share button gives me the recent post URL instead of the main page URL. Weird.

    Any further insight into fixing this issue?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Facebook sharing post URL instead of the homepage address!’ is closed to new replies.