I am creating an HTML5 / Javascript online test. I share the results of the Quiz via Facebook and Twitter. Messaging is created through Javascript: "I just got X of Y questions correctly"
I want to do the same with Google Plus. However, the “snippet” seems to be generated by the schema.org, Open Graph, or Title / Description tags on the page. Documentation here: https://developers.google.com/+/plugins/snippet/
I thought I could just dynamically generate these tags via query string parameters in PHP, but it looks like Google is caching the page. Any ideas?
PHP:
<?php $correct = strval($_GET['correct']); $title = "I took the Quiz and answered " . $correct . " of 9 questions correctly."; ?> <!DOCTYPE html> <html> <head> <title><?php echo($title); ?></title> <meta property="og:title" content="<?php echo($title); ?>" /> </head> </html>
Am I dynamically creating url ... / share.php? correct = 4
But when I share the page, I see a message:
I took the Quiz and answered of 9 questions correctly.
It does not display dynamic data. I assume Google cached the page?
thanks
source share