With the global challenge of aging, ensuring proper elderly care and social well-being is pivotal. This study explores the potential of AI-powered social robots in building an elderly community network based on a localized friend recommendation model. The goal is to leverage social robots to improve elderly social bonding, participation, friendship networks, and activities, thereby mitigating the risk of lonely aging. Utilizing deep learning, we analyze personality traits from the lifestyle data of the elderly. Next, machine learning generates a friend recommendation model by incorporating these traits with interests, hobbies, and local geospatial data. The recommended connections are then facilitated through interactive social robots. This study aims to bolster community engagement for the elderly, combining efficient AI analysis with practical robotic solutions tailored for their needs.