如何获得对livefyre的评论? [英] How to get comment count on livefyre?

查看:87
本文介绍了如何获得对livefyre的评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要 livefyre
评论在我自己的数据库中计算,以便我可以按评论数量对我的文章进行排序。



每次在我的网站上阅读网页时,我都会问Livefyre某个页面有多少条评论,然后用这个数字更新数据库。

p>

我尝试获取页面的源代码,但似乎没有帮助。



有什么建议吗?

解决方案

Atish的答案是正确的,因为您可以通过评论计数通知页面上JavaScript的最佳方式,通过客户端分析进行跟踪,或更新呈现计数的页面上的另一个地方。

在服务器端,您可以对任何对话使用'init'请求以检索公众评论数。





最后,您可以使用Livefyre Activity Stream API获取实时消息您的社区活动,您可以使用它来保持计数在您的最后。




I would like to get the comment count in my own database so that I can then sort my articles by comment count.

Every time a page is read on my site, I'd like to ask Livefyre how many comments that certain page has, then update the database with that count.

I tried to get the source of the page but it doesn't seem to be helpful.

Any suggestions?

解决方案

Atish's answer is correct as the best way for the JavaScript on the page to be notified of the Comment Count so that you can track via client-side analytics or update another place on the page where the count is rendered.

From the server side, you can use the 'init' request for any Conversation to retrieve the public comment count.

Finally, you can use the Livefyre Activity Stream API to get a real-time firehose of your community activity, which you can use to keep a count up to date on your end.

这篇关于如何获得对livefyre的评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆