Module z_facebook_oauth_service

Support routines for using Facebook as an external identity provider.

Copyright © 2010-2020 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Support routines for using Facebook as an external identity provider.

See: http://developers.facebook.com/docs/authentication/

Function Index

auth_validated/3Fetch the validated user data using the AccessToken.
authorize_url/3Return the authorization url for the OAuth permission dialog.
fetch_access_token/5Exchange the code for an access token.
oauth_version/0Return the major OAuth version being used.
title/1Return the service title for display in templates.

Function Details

auth_validated/3

auth_validated(AccessData, Args, Context) -> any()

Fetch the validated user data using the AccessToken

authorize_url/3

authorize_url(RedirectUrl::binary(), StateId::binary(), Context::z:context()) -> {ok, map()}

Return the authorization url for the OAuth permission dialog.

fetch_access_token/5

fetch_access_token(Code::binary(), AuthData::term(), Args::list(), QArgs::map(), Context::z:context()) -> {ok, map()} | {error, term()}

Exchange the code for an access token

oauth_version/0

oauth_version() -> pos_integer()

Return the major OAuth version being used

title/1

title(Context::z:context()) -> binary()

Return the service title for display in templates


Generated by EDoc