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" />
-
This topic was modified 8 years by
stevemanes.
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!
I just found the problem. Something is writing the “og:description” as “<meta property=…>” rather than as “<meta name=…>”.
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.
-
This reply was modified 8 years by
stevemanes.