Open graph issue on my theme
-
26-02-2021 - |
Question
I have alot of experience in designing and coding web, but i have a simple problem i cant solve.
When i share my post on facebook i cant get the description(og:description) to show, i only see the image.
It wont even show any thumbnails again on any social media e.g Whatsapp, twiter and more.
The problem started occuring when i installed yoast, When i detected this issue i immediately removed it but didnt got to solve it.
How do i fix this?
Solution
It is facebook social graph cache. I've cleared it on debug linter and everything fine now.
https://developers.facebook.com/tools/debug/
You can clear cache automatically via Facebook Graph Api:
POST /?id={object-instance-id or object-url}&scrape=true
More info here: https://developers.facebook.com/docs/sharing/opengraph/using-objects