This document proposes a new query type called social and spatial ranking query (SSRQ) that incorporates both social and spatial proximity to recommend users to a query user. It develops highly scalable algorithms to process this query type and evaluates them using real social network data. The proposed system ranks users based on both their social distance and spatial distance from the query user, providing a more personalized recommendation than only considering geographic proximity. Hardware requirements include a Pentium IV 2.4 GHz system with 40GB hard disk and 256MB RAM, while the software requires Windows XP, a JSP/ASP.NET front end, and a SQL Server back end.