/* Facebook specific: sharing related meta data */
 //$og_url=$completeURL;
 $og_type = "article";
 $og_title = "Where Great Minds Don't Think Alike";
 $og_description = "Test your knowledge. Share with friends. Learn while having fun.";
 $og_image = $protocol . $server . "/apptsvc/rest/media/retrieveStaticMedia/pree/default.jpg";
 /* Twitter related */
 $twitter_card = "summary_large_image";
 $twitter_site = "@Pree";
 $twitter_title = "Where Great Minds Don't Think Alike";
 $twitter_description = "Test your knowledge. Share with friends. Learn while having fun.";
 $twitter_image = $protocol . $server . "/apptsvc/rest/media/retrieveStaticMedia/pree/default.jpg";
 if ($sharedPree) {
     /* pull up the question and prepare the meta data */
     $apiURL = $protocol . $server . "/apptsvc/rest/pree/retrieveQuestion?contestUUID=" . $uuidURL;
     $questionJSON = makeApiCall($apiURL);
     if ($questionJSON['curl_error']) {
         $errorMessage = $siteletteJSON['curl_error'];
         $errorMessage = 'Service unavailable.';
     } else {
         if (isset($questionJSON['error'])) {
             $errorMessage = $questionJSON['error']['message'];
         } else {
             /* change meta data based on question */
             $og_title = $questionJSON['ogTitle'];
             $og_description = $questionJSON['ogDescription'];
             $og_image = $questionJSON['ogImage'];
             $twitter_title = $questionJSON['ogTitle'];
             $twitter_description = $questionJSON['ogDescription'];
             $twitter_image = $questionJSON['ogImage'];
         }
                include_once 'sitelette.php';
            }
            /*end valid sitelette*/
        }
        /*end can reach server */
    } else {
        /*
         * neither sasl access or urlkey access.
         * neither URL nor sa,sl provided
         */
        if ($tileViewDetails) {
            /*
             * make api call for retrieving chalkboards divs
             */
            $apiURL = $protocol . $server . "/apptsvc/rest/html/retrieveTileView";
            $siteletteJSON = makeApiCall($apiURL);
            $themeId = '2';
            $domain = 'UNDEFINED';
            $themeCSS = 'styles.css';
            include_once 'chalkboards.php';
            //
        } else {
            if ($tileViewDetails) {
                include_once 'no_sitelette/index.php';
            } else {
                include_once 'no_sitelette/index.php';
            }
        }
    }
    /* end no url supplied*/
}