Graph Search API order by like fql

醉酒当歌 提交于 2020-01-03 18:50:46

问题


Is there a way to sort the result with the Graph api by key? and choose desc or asc? just like in fql?

in the FQL I perform my query for event with ORDER BY start_time ASC at the end

anything similar in the graph api?


回答1:


There's currently no way to sort the results of Graph API calls, see https://developers.facebook.com/docs/graph-api/using-graph-api/v2.1#reading

In the most cases, the results are returned in the order of the creation time though.




回答2:


Currently in version 2.10 I can say that you can not even do the ordering of data in the API Graph facebook, a solution to this could be to sort the data from the frontend of the app with an external library.



来源:https://stackoverflow.com/questions/25774885/graph-search-api-order-by-like-fql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!