Support » Developing with WordPress » Wrong title and description of posts when sharing on facebook

  • Resolved paulberg70

    (@paulberg70)



    Dear All.

    I have my wordpress site and it always worked fine when sharing on Facebook my posts using the plugin “add to any” until few months ago (title and description were correctly shared on the social network).
    The situation unfortunately changed some months ago, and now when i share my post on facebook, i got this
    – as title, add to any shares the title of my site (and not the post)
    – as description, it shares the tags (and not part of the content, the excerpt).

    I have tried to to debug it with the facebook developer tool.
    https://developers.facebook.com/tools/debug/
    and actually there are errors like this in “Warnings That Should Be Fixed” section
    Inferred Property
    The ‘og:url’ property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The ‘og:title’ property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The ‘og:description’ property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
    Share App ID Missing

    The ‘fb:app_id’ property should be explicitly provided, Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog.
    Inferred Property
    The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.

    Is there any user who had the same issue and tried to solve it successfully? So it would be nice to have the workaround. Otherwise, any one that has any suggestion and it will be welcome.
    if you need my blog post i can provide you the URL, and so you can try yourself.

    last but not least, with Twitter i don’t get the same error and i share correctly the post title.

    Thanks in advance,
    Paolo

Viewing 5 replies - 1 through 5 (of 5 total)
  • paulberg70

    (@paulberg70)

    Just a detail in this note: the URL is shared correctly on Facebook. The problem are the displayed title and the description. But once i click on the link, it re-direct correctly to my blog-post.
    Thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    Install the plugin “WordPress SEO”. It will create the necessary og: tags. On its “social” tab, you can also set defaults for Facebook.

    paulberg70

    (@paulberg70)

    Hello Steve,
    Thank you for the answer,
    i will check 😉
    Paolo

    Hello Steve,
    finally, i had the time to test it
    the plugin did not work and also the other ways described here
    http://www.wpbeginner.com/wp-themes/how-to-add-facebook-open-graph-meta-data-in-wordpress-themes/
    there is something that i miss?

    and also you may check here the settings of the open graph added in a blog post page (seeing from view source)
    view-source:http://www.paolobergomi.it/london-2016/
    it should work but it does not. once i share my blog post, it shares always the main page and not the relative content.

    you may check here my correct settings of yoast seo in my site

    http://www.paolobergomi.it/yoas_config.JPG

    Please let me know if you have any suggestion to implement
    thank you
    paolo

    Hello Again
    This time worked. i visited https://developers.facebook.com/tools/debug/sharing/
    and put in the field an URL to a blog post of my website. It seems that the issue is solve now. Not sure what happens, as I did not change anything else since yesterday, when the plugin seemed not have effect.
    http://www.paolobergomi.it/london-2016/

    The only thing i can figure out, it is that it takes some time for the plugin to have effect on Facebook
    Not sure, but thanks again for your help.
    We can close this topic

    p.s. it gives still warnings but they are not effectively blocking the sharing of my post.
    the OG: tags as said are correctly put in <head> of my website so it works as should be.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong title and description of posts when sharing on facebook’ is closed to new replies.