views:

16

answers:

1

Is that possible?sould I combine the like number into mysql?

A: 

If I understood you correctly you have a set of pages and you want to sort links to them according to their like counters. You can do this using FQL:

SELECT url, like_count FROM link_stat WHERE url IN("FIRST_URL","SECOND_URL") ORDER BY like_count desc

(see link_stat table)

serg
select post_id from link_stat
nzh
then I can query mysql by post_id get content detail.
nzh
@nzh If you want to sort posts then you can run FQL on `stream` table to get like counts for posts.
serg