diff --git a/php/shortcodes.php b/php/shortcodes.php
index 35774c980..26acbf518 100644
--- a/php/shortcodes.php
+++ b/php/shortcodes.php
@@ -127,13 +127,13 @@ function qsm_load_main_scripts() {
* @global obj $wp_query
*/
function qsm_generate_fb_header_metadata() {
+ global $mlwQuizMasterNext, $wpdb, $wp_query;
if ( isset( $_GET['result_id'] ) && '' !== $_GET['result_id'] ) {
$settings = (array) get_option( 'qmn-settings' );
$facebook_app_id = '594986844960937';
if ( isset( $settings['facebook_app_id'] ) ) {
$facebook_app_id = esc_js( $settings['facebook_app_id'] );
}
- global $mlwQuizMasterNext, $wpdb, $wp_query;
$result_id = sanitize_text_field( wp_unslash( $_GET['result_id'] ) );
$results_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}mlw_results WHERE unique_id = %s", $result_id ) );
if ( $results_data ) {
@@ -194,15 +194,20 @@ function qsm_generate_fb_header_metadata() {
$pagename = $post->post_title;
$result_id = sanitize_text_field( wp_unslash( $_GET['result_id'] ) );
?>
-
-
-
-
-
-
-" />
+
+
+
+
+
+ quizCreator->get_id();
+ $featured_image = get_option("quiz_featured_image_$quiz_id");
+ ?>
+
+