Recently I finished working on a WordPress theme which I’ll blog about later. While I was working on the theme, the WordPress account was on maintenance mode to keep prying eyes away. Once the site was ready to launch, it was out of maintenance mode, but I guess Facebook had already crawled the site. I installed this Facebook Meta Tags plugin which was straight forward and easy to use.
When the link to the site was pasted into Facebook to share, the meta title, description and image were outdated. This information is cached by Facebook, so what do you do if you want it updated? Wait for Facebook to come back to crawl your site to update it’s cache? Yes, you can but what if it takes 2-3 days? I didn’t want to wait that long, so I searched for a solution.
There’s a link that you can go to, enter the URL and flush the cache manually, so Facebook can grab the recent meta data.
Here’s the link to Facebook’s Object Debugger: https://developers.facebook.com/tools/debug
The debugger also tells you what’s wrong with your information and how to fix it.
Here’s a mapping of what each meta tag means in terms of WordPress.
Meta Tag: <meta property="og:title" content="BitSummit" /> This title is pulling from the title of the page/post. Meta Tag: <meta property="og:type" content="article" /> Self-explanatory. Meta Tag: <meta property="og:url" content="http://bitsummit.org/" /> The URL of the site. Meta Tag: <meta property="og:image" content="http://bitsummit.org/wp-content/uploads/2013/02/BitSummit_FB_Icon.png" /> The Facebook Meta Tags plugin allows a default image in case an article doesn't have a featured image set. Meta Tag: <meta property="og:site_name" content="BitSummit.org" /> This is coming from Settings/General/Site Title Meta Tag: <meta property="fb:admins" content="699442825" /> The admin id number for Facebook. This number is optional and can be inputted in the FaceBook Meta Tag plugin. Meta Tag: <meta property="og:description" content="Welcome to BitSummit! BitSummit is a special event for a unique group of game developers. Come inside and browse the site for more information on one of the year’s most exciting video game industry events! Learn more » Sponsors" /> This is any content found on the page. Meta Tag: <meta property="article:section" content="" /> Meta Tag: <meta property="article:tag" content="" />
After inputting both URLs (the English version and Japanese version of the site), the new meta tag information was showing on Facebook in preview mode.