I have this fql query:
SELECT link_id, owner, owner_comment, created_time, title, summary, url, image_urls
FROM link
WHERE owner IN (SELECT uid2
FROM friend
WHERE uid1 = me())
ORDER BY created_time DESC
LIMIT 0,200;
It’s supposed to display last 200 posted links by my friends, but it displays them ordered by owner id ASC then by created_time DESC.
Is ORDER BY in fql limited to one use? How can I make it work?
I suspect the problem is the
LIMITstatement. FQL has some odd internal behaviors to optimize their own internal API.Try removing the
LIMITstatement and just give it a specificAND created_time > <point in time>and see if it orders properly. If so, that’s why.