static function from_user($user, $max_age = LFTOKEN_MAX_AGE)
 {
     $secret = $user->get_domain()->get_key();
     $args = array('domain' => $user->get_domain()->get_host(), 'user_id' => $user->get_uid(), 'expires' => time() + $max_age);
     $dname = $user->get_display_name();
     if (!empty($dname)) {
         $args['display_name'] = $dname;
     }
     return LF_JWT::encode($args, $secret);
 }
 public function collection_meta()
 {
     $article = $this->article;
     $site = $article->get_site();
     $domain = $site->get_domain();
     $collectionMeta = array("title" => $article->get_title(), "url" => $article->get_url(), "tags" => $article->get_tags());
     $checksum = md5(json_encode($collectionMeta));
     $collectionMeta["checksum"] = $checksum;
     $collectionMeta["articleId"] = $article->get_id();
     $jwtString = LF_JWT::encode($collectionMeta, $site->get_key());
     return array('collectionMeta' => $jwtString, 'checksum' => $checksum);
 }
    echo $raw_resp;
}
curl_close($ch);
?>
</div>

<script type="text/javascript">
<?php 
$article_url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
// Include JWT
if (class_exists('LF_JWT') != true) {
    include dirname(__FILE__) . '/../includes/livefyre/JWT.php';
}
// Create collectionMeta
$meta = array("articleId" => $articleId, "title" => $articleTitle, "url" => $article_url);
$collectionMeta = LF_JWT::encode($meta, $site_key);
?>
//alert('<?php 
echo $url;
?>
');
fyre.conv.load({
    network: '<?php 
echo $lf_domain;
?>
'
}, [{
    el: "lfcomments",
    siteId: '<?php 
echo $blogid;
?>