Ringrev / facebook-api-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create LoginFlow For Facebook

arn-the-long-beard opened this issue · comments

Overview of feature 📝

We need to create the login_flow for https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow

Part 1 create the URL

  • Build a struct that contains the base_url for login and the configuration
  • Implementation with constructor to use a Config variable to load the config
  • Added methods for builder pattern to users can add and update fields the way they need.
  • Implementation for building the Url Login Dialog Url with token
  • Implementation for getting the Url so the user can have it in the view() function i nseed

Part 2 get the reponse from facebook

  • Implementation for extracting the url fragments and build the TokenReponse
  • Implementation for Inspecting Access Tokens

Which problem is the feature or enhancement solving❓

We need to have Struct & impl for login flow

Documentation & Help ℹ️

Step 2 needs to be performed server to server. So we leave it for now.