'Facebook login to post in my database and link user to backend

I have a web app with Python and Flask that takes user input and stores it in a database, then I populate all the data in an HTML file. However, I want the user to be logged in with Facebook in order to post, but then I want a link between the user who posted it and all posts in my database. Since the facebook login api is in the frontend scope (Javascript) and the backend is made with python, how can I make that connection between user and posts? Is that possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source