Facebook share generates the wrong description

Posted in: Newsmag
Post count: 12

When I try to share a post via the Facebook share button, the preview actually has teaser text for another post (my “About” page text). A View Source shows that <meta property=”og:description” content=”XX”> is set with the correct description text:


<meta property="og:image" content="http://xxxx.com/wp-content/uploads/2018/07/bmw-plant.jpg" />
<!-- This site is optimized with the Yoast SEO plugin v7.8 - https://yoast.com/wordpress/plugins/seo/ -->
<!-- Admin only notice: this page does not show a meta description because it does not have one, either write it for this page specifically or go into the [SEO - Search Appearance] menu and set up a template. -->
<link rel="canonical" href="http://stoophang.com/bmw-and-tesla-to-build-new-plants-in-china/" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="BMW and Tesla to build new plants in China | Stoophang" />
<meta property="og:description" content="BMW announced this week that it will be building two new plants in China and downsizing its US plant in Spartanburg, SC. Currently, the South Carolina plant focuses on BMW’s mainstream SUV production which it exports to 140 countries. According to the Munich-based BMW, the company needs to do this to avoid the 40% tariff …" />
<meta property="og:url" content="http://xxxx.com/bmw-and-tesla-to-build-new-plants-in-china/" />
<meta property="og:site_name" content="XXXX" />

Post count: 23312

Hello stevemanes,

The Facebook sharing should works as expected if the theme has been correctly installed via FTP way. For social sharing and general SEO, we recommend the Yoast SEO plugin. Install and activate the Open Graph data
https://forum.tagdiv.com/facebook-share/

Hope this helps!

Thanks for your understanding!

Post count: 12

I just found the problem. Something is writing the “og:description” as “<meta property=…>” rather than as “<meta name=…>”.

Post count: 12

Oddly, it started working this morning. I don’t know if it was a cache problem (although I don’t have a cache plugin) and it wasn’t just with Facebook shares through the WordPress interface. If I plugged the page URL into Facebook manually it still pulled the same description from my “About” page. I mean for every URL… same “About” page description.

I don’t like not knowing why something wasn’t working but “fixed itself” but I’ll take it.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.