Setting varibales for FB OG metadata
When we first created our site we set up some Facebook Open Graph metadata so that links send to FB would have a specific format. We put this format in our header (extra spaces after first carrot just so it will show up here):
< meta property="og:image" content="http://oursite.com/assets/images/ourimage.jpg
< meta property="og:title" content="Meet Us" />
< meta property="og:description" content="We are your system for..." />
But now we want to have a few specific pages that have their own OG metadata for a promotion and I've tried a couple different techniques without success such as trying to set variables in _variables/global.php or just switching out the first line with:
< meta property="og:image" content="<?=fuel_var('og_image', 'http://oursite.com/assets/images/ourimage.jpg'
) ?>" />
and then in my view setting the var like this:
Neither of these worked. Does anyone have other recommendations or just things I might have done wrong using either of these techniques?