Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在facebook喜欢按钮中获得喜欢的数量?
这是我的场景,我有五个喜欢按钮,我想根据喜欢的数量对按钮进行排序。是否可以?
link_stat您可以通过在表上运行 FQL 来获得任何 URL 的点赞数:
link_stat
SELECT like_count, url FROM link_stat WHERE url IN("FIRST_SHARE_URL","SECOND_SHARE_URL") ORDER BY like_count
然后按相应的顺序显示按钮。
有一个button_count设置,一旦指定,将在按钮右侧显示计数。
button_count
更多信息: