开发者

Facebook Like button and MySQL database

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 开发者_StackOverflowmost liked to least liked, please help me :S

I did an illustration :-)

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

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜