Adding Open Graph Metadata to Pods Pages
I'm doing some SEO optimization on my sites, and I notice a glaring hole: When someone shares one of my Pods pages, the <meta property='og:...'> tags are filled with the default values for my site's homepage.
I've tried a few plugins like Simple Facebook Connect and Wordpress SEO. None of them have pods support out of the box, so it looks like I've got to either modify one of these or roll my own.
Does anyone have a solution that works they are willing to share?
2 Answers
It's a bit of a hack, but it gets me going for now. I borrowed heavily from the Simple Facebook Connect plugin for this code, and am including this file in my theme's functions.php.
Any comments / improvements would be appreciated.
Although I wasn't using the open graph tags, I was working on something similar, and had to hack support for an events pod into the plugin BP Share it. You're welcome to my files if you like, but it is really nothing too exciting -- just concatenating strings to generate the URL + variables for the specific service...


