to an app, clicks on 2) User redirected to Facebook, accept sharing data with app 3) App receives "Grant", exchange for having user contacts 4) Contact import successful! FLOW
clicks on 2) User redirected to Facebook, accept sharing data with app 3) App receives "Code", exchange for having user information: email, name, ... 4) User is logged in OPENID CONNECT CODE FLOW facebook.com/oauth?response_type=code& client_id=1234& redirect_uri=http://app/callback scope=email& state=random_string http://app/callback?code=secret_code facebook.co/token?code=secret_code ID_TOKEN BACKEND TO BACKEND INSIDE BROWSER
clicks on 2) User redirected to Facebook, accept sharing data with app 3) App receives "Access Token" and "ID Token", exchange for having user information: email, name, ... 4) User is logged in OPENID CONNECT IMPLICIT FLOW facebook.com/oauth?response_type=code& client_id=1234& redirect_uri=http://app/callback scope=email& state=random_string http://app/callback?access_token=secret&id_token=jwt INSIDE BROWSER