Yuval A.
Yuval A.

Reputation: 6089

"WHERE clause" in Facebook Graph API

So, Facebook is supposed to be retiring FQL... today(8.8.16). Is there a way to make Graph API requests, with something similar to WHERE ...?

For example, in FQL, this will bring me my status-posts who got more than 10 likes (and nicely order them from top to bottom)

SELECT message, like_info FROM status WHERE uid=me() AND 
like_info.like_count>10 ORDER BY like_info.like_count DESC

How will you achieve this with the Graph API only? Is it possible at all?

Upvotes: 0

Views: 1135

Answers (1)

andyrandy
andyrandy

Reputation: 73984

No, there is no way with the Graph API to do that, you would have to get all posts and do the sorting/filtering on your own. You can filter by date though, with the since and until parameters.

Upvotes: 1

Related Questions