Copyright © 2010-2020 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
Support routines for using Facebook as an external identity provider.
See: http://developers.facebook.com/docs/authentication/auth_validated/3 | Fetch the validated user data using the AccessToken. |
authorize_url/3 | Return the authorization url for the OAuth permission dialog. |
fetch_access_token/5 | Exchange the code for an access token. |
oauth_version/0 | Return the major OAuth version being used. |
title/1 | Return the service title for display in templates. |
auth_validated(AccessData, Args, Context) -> any()
Fetch the validated user data using the AccessToken
authorize_url(RedirectUrl::binary(), StateId::binary(), Context::z:context()) -> {ok, map()}
Return the authorization url for the OAuth permission dialog.
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() -> pos_integer()
Return the major OAuth version being used
title(Context::z:context()) -> binary()
Return the service title for display in templates
Generated by EDoc