Support » Plugin: WP2Social Auto Publish » Shared link text contains “meta” information

  • Resolved dregad

    (@dregad)


    I installed your plugin today. Before that, I was using https://wordpress.org/plugins/add-link-to-facebook/ but I switched due to lack of support and updates.

    After following the excellent setup instructions, everything works as expected and posts are published on the Facebook page when submitted in WordPress.

    I only have one issue, with the contents of the shared post: the text includes “meta” information (post title, date, category, tags, author) in addition to the body text. I would prefer to have only the text.

    To illustrate the problem:
    https://www.facebook.com/apecove/posts/1635737286546657
    Note the first 2 lines of text below the post’s title

    Histoire de l’Art : jeudi 12 avril 16h30-17h3026.03.2018ActivitésHistoire de l’Art(author name redacted)

    In contrast, a manually-posted link is not showing this metadata https://www.facebook.com/apecove/posts/1635648096555576, and neither are those created by the old add-link-to-facebook plugin (before it stopped working).

    Is there some setting that I can change to only have the post’s contents ?

    I’m using WP 4.9.5, facebook-auto-publish 1.4.8. Posting method id Share a link to your blog post.

    • This topic was modified 4 years, 7 months ago by dregad.
    • This topic was modified 4 years, 7 months ago by dregad.
    • This topic was modified 4 years, 7 months ago by dregad.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Just manually posted your post link.
    The link of your post’s preview is same as the post at the provided link -> https://www.facebook.com/apecove/posts/1635737286546657 .
    Since Facebook no longer supports the custom link previews,when you share a link into Facebook, it generates a preview of the page itself. Facebook uses open graph meta data in order to display the image, title, and description.
    The plugin set the image from post as og:image when Facebook fetch your page so that it show the exact thumbnail on facebook generated preview.
    Get yourself a plugin to automatically set og tags for your posts or customise it in your theme’s function.php as described here . And also verify the link preview appear as you expected at the Facebook Open Graph Object Debugger

    Hope it helps.
    Thank you.

    Thread Starter dregad

    (@dregad)

    Many thanks for your prompt reply and for educating me on the og tags.

    It would appear that the add-link-to-facebook plugin that I used before, was adding these tags for me, whereas yours does not. I guess this explains why the other post I referenced was displayed properly (it contained og tags); I just refreshed the cache in https://developers.facebook.com/tools/debug/og/object/ now that the old plugin is disabled, and the tags are gone and now the post also shows the metadata.

    I’ll look for a plugin to add og tags to fix my problem. If you have any recommendations it would be appreciated.

    As i already said you can customise it in your active theme’s function.php file.
    Read here: How To Add Open Graph Meta Tags To WordPress
    The complete code is given at the documentation,add it to the end of functions.php file of your active theme(Don’t include
    ` if(has_post_thumbnail($post->ID)) {
    $img_src = wp_get_attachment_image_src(get_post_thumbnail_id( $post->ID ), ‘medium’);
    } else {
    $img_src = get_stylesheet_directory_uri() . ‘/img/opengraph_image.jpg’;
    }`

    since we already include the og:image tag in plugin code)
    Hope this helps.
    please let us know ,if any doubts.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shared link text contains “meta” information’ is closed to new replies.