Support » Plugin: Open Social Share » Plugin not sharing on Facebook

Viewing 4 replies - 1 through 4 (of 4 total)
  • What is a site url where this is happening?


    It is only happening when we share the article on Facebook

    I appreciate your help.



    After testing the plugin several times I came to know that problem is in picking the description text having line breaks.

    for example : if description text is “some text without line break” then it will work fine

    if description text is “some text
    with line break” then it will show server error.

    I had the same issue, but i fixed it by editing the plugin.

    I used php to strip the line breaks and double spaces and it is fixed.

    Because i’m using only the shortcode i edited the shortcode file located in:


    after the line 82 i added

    $string_cln = trim(preg_replace('/\s\s+/', ' ', substr(wp_strip_all_tags($post->post_content), '0', 100)));

    and then changed the line below to follow:

    $share = '<div class="oss_title_replace oss_horizontal_share" ' . $style . ' data-share-titles="'.get_the_title($post->ID).'" data-share-description="'.$string_cln.'" data-share-imageurl="'.wp_get_attachment_url( get_post_thumbnail_id() ).'" data-share-url="' . get_permalink($post->ID) . '"></div>';

    Hope it helps as a temp fix, while @loginradius-dev fixes it permanently and make it even more awesome 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin not sharing on Facebook’ is closed to new replies.