Hi There,
I’ve recently bought the Newspaper theme and whilst its great and really easy to use I’m at a loss when it comes to why the social media links have stopped working.
When I share my articles via Facebook or Twitter it doesn’t show the preview of the link. Yoast has been installed and configured correctly, the OG code is there also, however I am getting error from the URL debugger on Facebook, see below.
Inferred Property
The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
Missing Properties
The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id
Curl Error
Curl error: 23 (WRITE_ERROR)
This was not occurring prior to changing the theme over, I feel it must be something simple, and any pointers would be great on this.
Cheers
Robert
Hi,
Try to run a post through this tool, see what is detected
– https://developers.facebook.com/tools/debug/og/object/
I could also take a look, please provide a link to your website so I can test a post.
Thanks
Hi Simon,
Thank you for responding to my post.
I ran the link through the tool you provided and I got the following errors.
Object at URL ‘https://www.boosttorbay.com/enjoy-a-safe-barbecue-this-summer/’ of type ‘website’ is invalid because a required property ‘og:title’ of type ‘string’ was not provided.
Warning
Curl Error : WRITE_ERROR Failed writing body (942 != 8000)
Warning
Errors That Must Be Fixed
Object Missing a Required Value Object at URL ‘https://www.boosttorbay.com/enjoy-a-safe-barbecue-this-summer/’ of type ‘website’ is invalid because a required property ‘og:title’ of type ‘string’ was not provided.
As for a URL try this one: https://www.boosttorbay.com/enjoy-a-safe-barbecue-this-summer/
I disabled all the plugins and the issue is still there. However when I go to preview the link on Google+ there doesn’t appear to be a problem. Yet with Facebook and Twitter there is.
If I check down below in the debug page, the See exactly what our scraper sees for your URL, seems that none of the Yoast meta is seen by Facebook. In the actual page source the meta is present.
Page source – https://www.screencast.com/t/kiZsEBp1K
What Facebook sees – https://www.screencast.com/t/zrHCU2SG
So it seems that Facebook cannot scan the website properly, I can’t say why that happens.
Maybe check some online guides in the matter, with possible solutions
– https://rameerez.com/facebook-sharing-not-scraping-url-correctly-with-https-links/
Morning Simon,
Many thanks for coming back to me on this.
Ah, I think I may have found the issue. My website is using a Plugin called Autoptimise. I deactivated this and the images and OG details are now displaying correctly.
Is it possible that there is a conflict between Autoptimise and the Newspaper theme?
I’ll have to nose into this further.
Cheers
Robert
I see many users that have the plugin installed, but no such issues when sharing. So maybe settings from the plugin could cause it. I don’t have experience with the plugin unfortunately, maybe experiment with different settings.
Also if other users that have installed the autooptimize plugin and have more experience in this matter, please share your thoughts.
Try to clear you autoptimize cache and the wp super cache plugin cache (or cache for the plugin you use if not wp super cache) and see if it resolves the issue. Then debug your posts again as directed by Simion. I used the autoptimize plugin before and did not have issues with it, but I had disabled CSS and js minification for HTML. I now use fast velocity minify.