Skip to content

Facebook Api manul login flow in python Flak. This module app will help you to get facebook access token in by python. It can generate facebook access tokens by only python flak. It is a simple facebook access token generator.

License

Notifications You must be signed in to change notification settings

Tonmoy-abc/facebook-manual-login

Repository files navigation

Facebook Graph API Access Token Generator with Python Flask

This repository contains a Python Flask application that utilizes the Facebook Graph API to generate access tokens. The access tokens are required to make authenticated requests to the Facebook Graph API and access various features and data on the Facebook platform.

Image

Prerequisites

To run this application, you need to have the following installed:

  • Python (version 3.6 or higher)
  • Flask (version 2.0.1 or higher)
  • Requests (version 2.26.0 or higher)
  • Virtualenv (version 20.14.1 or higher)

You also need to have a Facebook Developer account and an app created on the Facebook Developer platform. You will need the app ID, app secret, and other necessary credentials to authenticate and generate access tokens.

Screenshot 1 Screenshot 2 Screenshot 3

Getting Started

  1. Clone this repository to your local machine or download the ZIP file.

  2. Create a virtual environment by running the following command in your terminal or command prompt:

virtualenv env
  1. Activate the virtual environment by running the following command in your terminal or command prompt:
./env/Scripts/Activate
  1. Install the required dependencies by running the following command in your terminal or command prompt:
pip install -r requirements.txt
  1. Open the config.py file and replace the placeholders with your Facebook app credentials:
app_id = 'YOUR_APP_ID'
app_secret = 'YOUR_APP_SECRET'

Note: If you want to generate "Page Access Token" give your page id in:

page_id = 'YOUR_PAGE_ID'
  1. Save the changes and run the Flask application by executing the following command:
python app.py
  1. Open your web browser and navigate to http://localhost:8888. You should see the access token generator interface.

  2. Enter click on the "Access Token" button. Follow the authentication flow, and upon successful authentication, you will receive an access token.

Easy Install

Just Run the following command in your terminal or command prompt and everything will be installed.

python install.py

Facebook Credentials

  1. APP_ID
  2. APP_SECRET
  3. PAGE_ID
  4. Access Tokens

Contributing

Contributions to this project are welcome! If you find any issues or want to add new features, feel free to open a pull request or submit an issue.

License

This project is licensed under the MIT License. Feel free to modify and use it for your own purposes.

Repository Link: https://github.com/Tonmoy-abc/facebook-manual-login.git

About

Facebook Api manul login flow in python Flak. This module app will help you to get facebook access token in by python. It can generate facebook access tokens by only python flak. It is a simple facebook access token generator.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages