Error when sharing post on facebook (2 posts)

  1. johndavin
    Posted 5 years ago #


    When I use a social plugin (sharethis or others)

    I get this when the facebook site comes up (NO TITLE/WRONG URL).

    What's on your mind?
    (No Title)

    It does not always do the same thing! For example, it works to click on facebook share here.


    But it does not work on this site. What is the difference? Thank you.

    I also tested it on a new WP install with no plugins, does the same thing.

    Thank you.
    John Davin

  2. achellios
    Posted 5 years ago #

    Facing the same problem. I'm building a custom Facebook button using the old share functionality (the new "Like" button seems to change frequently, and iframes are difficult to work with in tight spaces).

    I'm running WP 3.1 on a LNMP setup (Nginx instead of Apache), using the following script:

    function fbs_click(u, t) {
        return false;}

    Here's the actual link:

    <a rel="nofollow" href="#" onclick="return fbs_click('<?php the_permalink(); ?>', '<?php the_title(); ?>')" target="_blank">Like <img src="<?php bloginfo('stylesheet_director
    y'); ?>/images/facebook_16.png" width="16" height="16" alt="Facebook Icon"></a>

    A handful of posts will share correctly, but by and large the output on Facebook looks like this:

    (No Title)

    I've noticed that for a split second, the title and permalink display properly--but then immediately snap to the above display.

    Any suggestions at all would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic