July 2019
Beginner to intermediate
302 pages
9h 38m
English
To enable Facebook authentication for your application, follow these steps:
app.config["FACEBOOK_OAUTH_CLIENT_ID"] = 'my facebook app ID'app.config["FACEBOOK_OAUTH_CLIENT_SECRET"] = 'my facebook app secret'from my_app.auth.views import facebook_blueprint app.register_blueprint(facebook_blueprint)
In the preceding code snippet, we used Flask-Dance with our application for authentication. This blueprint will be created in the views file, which we will cover next.
from flask_dance.contrib.facebook ...