modified to make facebook queries