change code to use fql query in query ranking