如何追踪社交喜欢人数 [英] How to track social likes count

查看:139
本文介绍了如何追踪社交喜欢人数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的社交喜好设计如下:

I have the following design of social likes:

每当用户将鼠标悬停在正常的社交类图标上时,就会出现真正的社交类按钮.当用户单击诸如此类时,我希望新计数显示在我的普通视图中.最简单,最快的方法是什么?

Whenever a user hovers over normal social like icon the real social like button appears. When the user clicks on the like, I want the new count be displayed on my normal view. What is the easiest and fastest approach to do so?

我需要为多个社交网络实现此功能,而不仅仅是Facebook.

I need to implement this for several social networks, not only for facebook.

推荐答案

您需要自行构建.由于其网站上包含社交插件,因此某些网站这样做是为了将数据发送到facebook/twitter/etc.

You need to build it on your own. Some sites do this to provide sending data to facebook/twitter/etc due to social plugin includes on its website.

您可以按以下方式访问URL的点赞"数: https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://google.com%22

You can access your URL "like" count like this: https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://google.com%22

因此,您将能够自行创建正常"状态.在鼠标悬停时,您将能够加载社交插件.

So you will be able to create the "normal" state on your own. On mouse over you will be able to load the social plugins.

此网站显示了另一个处理此问题的示例: http://www .heise.de/newsticker/meldung/Apple-vs-Samsung-Hohe-Geldstrafe-kein-Verkaufsverbot-Berufung-2136834.html

This website shows you an other example for handling this: http://www.heise.de/newsticker/meldung/Apple-vs-Samsung-Hohe-Geldstrafe-kein-Verkaufsverbot-Berufung-2136834.html

这篇关于如何追踪社交喜欢人数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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