$game['instruction'] = nl2br($game['instruction']);
$ogfix = array(
'type' => 'game',
'title' => $game['title'],
'description' => $game['description'],
'url' => $vbulletin->options['bburl'] . '/arcade.php?game=' . $game['gameid'],
'image' => $vbulletin->options['bburl'] . '/dbtech/vbarcade/media/' . $game['gameid'] . '/' . $game['badge']
);
foreach ($ogfix AS $prop => $value)
{ //add or replace the opengraph tags
if (strpos($headinclude, 'property="og:' . $prop) === false) $headinclude = str_replace('<meta property="og:site_name"', '<meta property="og:' . $prop . '" content="' . $value . '" /><meta property="og:site_name"', $headinclude);
else $headinclude = preg_replace('/property="og:' . $prop . '" content=".*"/U', 'property="og:' . $prop . '" content="' . $value . '"', $headinclude);
}
facebook seems to cache the urls' data. i dont think you or i have the ability to tell them to flush that cache though. lets hope its timebased and not that long!
thats what i used to find out the problem (as well as verify the fix)didnt know using it flushes the cache though.
<img src="http://developers.facebook.com/tools/debug?q=$href" width="0" />
did you check to see if it fixed the games though? again, youd have to look at facebook for tools for doing that (which i have no idea sorry)
looks like maybe you can speed it up a bit. put this in your dbtech_vbarcade_game template somewhere
HTML:<img src="http://developers.facebook.com/tools/debug?q=$href" width="0" />
Then merely visit each game, and the page should ping the server with its url. refresh the page after the first load to see if Liking works.
dont forget to remove it from the template when you are done.
We use essential cookies to make this site work, and optional cookies to enhance your experience.