Check custom implementation of Livefyre comment here
https://github.com/Livefyre/livefyre-docs/wiki
When you call
fyre.conv.load({"network": self.network,
authDelegate: self.authDelegate
}, [ self.config ], self.lfready)
you need to pass call back event in self.lfready i.e.
app.on('commentCountUpdated', self.onCommentCountUpdated);
This 'commentCountUpdated' is livefyre call back event which returns you the number of comment counts.
self.lfready = function(app) {
//Wrap in try catch because Livefyre catches errors in the callback (seemingly)
//And we want to catch and log ourselves.
try{
$.log("Livefyre is ready, attaching custom handlers");
//Attach events
app.on('commentCountUpdated', self.onCommentCountUpdated);
//Only update to zero if the onCommentCount hasn't fired already
self.$commentContainer.find("#lf_comment_stream").show();
}catch(err){
$.error("Livefyre failed to load", err);
self.$commentContainer.hide();
}
};
self.onCommentCountUpdated = function(number){
console.log("Latest count from LF stream event:" + number)
};