Facebook Like按钮和MySQL数据库 [英] Facebook Like button and MySQL database

查看:83
本文介绍了Facebook Like按钮和MySQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户喜欢数据库中的某项内容以添加+1并且用户不喜欢将其从数据库中删除为-1个喜欢项时,我想获取喜欢的数目并将其保存在数据库中,这应该实时进行...至少我认为是这样,如果有其他方法可以从最喜欢的到最不喜欢的安排,请帮助我:S

I want to take the numbers of likes and saving it in a database when a user liked something in the database to add +1 and when a user does not like to be removed from the database to the numbers of -1 likes, this should be done in real time ... at least I think so, if there is a way otherwise be arranged from most liked to least liked, please help me :S

我做了一个插图:-)

I did an illustration :-)

http://i.stack.imgur.com/9mlFz.jpg

p.s .:我希望,我至少对一个金发女郎:D

p.s.: I hope, I explained it well, at least as for a blonde :D

推荐答案

要获取特定页面的likes编号,您可以执行FQL

To get number of likes for particular page you can perform FQL

SELECT like_count FROM link_stat WHERE url="url is here"

http://developers.facebook.com/docs/reference/fql/link_stat

这篇关于Facebook Like按钮和MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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