Implementing fb queries.