Facebook Pulling Old og:title Data from WordPress
-
Working on a web site for posting to Facebook. We are trying to control the site title as Facebook displays it. Facebook uses Open Graph APIs for this, which pull "og" data from the site. We are familiar with all of that.
We are having an issue that our og:title is not being passed to Facebook. If I look at the page source, I can see, for example...
<meta property="og:title" content="MySite - Stuff About My Site" />
But if I use the Facebook Debugger for Open Graph tool, it pulls the site (and I've verified all caches, that they have the right IP address, and so forth) but gets this instead...
<meta property="og:title" content="MySite" />
So it is clear that the page source and what Facebook is scraping are not matching. But Facebook is claiming to be looking at the same source that I am.
My only thought is that Facebook's Debugger has its own cache that has not updated, but acts like it is pulling from the source?
-
If I use the "show me exactly what Facebook sees for your URL" option, it seems no og tags at all, contrary to what it reports and looks very different from the page source when viewed from the same URL.
-
@scottalanmiller Isn't it simply a case of Facebook stripping everything after the dash so "MySite - Stuff About My Site" turns into "MySite". It's common to use dash to separate page and subpage title so it makes sense for them to strip everything after the dash.
-
@Pete-S said in Facebook Pulling Old og:title Data from WordPress:
@scottalanmiller Isn't it simply a case of Facebook stripping everything after the dash so "MySite - Stuff About My Site" turns into "MySite". It's common to use dash to separate page and subpage title so it makes sense for them to strip everything after the dash.
Their examples show that not happening. They show it being normal to have the dash exactly as used. And it is all in quotes, as well.
-
@scottalanmiller Try with another separator instead of dash, just to make check if it's the dash or something else. Maybe just remove it altogether.