you can’t make a facebook with pytho with good speed
You may want to check your assumptions. Facebook's back-end was developed with PHP, probably because it was the most popular web back-end language when it was originally developed. However, two later Meta products, Instagram and Threads, used Python for their back-end. Source: https://engineering.fb.com/2023/09/07/culture/threads-inside-story-metas-newest-social-app/