yesod-auth-0.7.9: Authentication for Yesod.

Yesod.Auth.Facebook

Synopsis

Documentation

authFacebook

Arguments

:: YesodAuth m 
=> Text

Application ID

-> Text

Application secret

-> [Text]

Requested permissions

-> AuthPlugin m 

Authentication plugin using Facebook.

facebookLogin :: AuthRoute

Route for login using this authentication plugin.

facebookUrl :: AuthRoute

This is just a synonym of facebookLogin. Deprecated since yesod-auth 0.7.8, please use facebookLogin instead.

facebookLogout :: AuthRoute

Route for logout using this authentication plugin. Per Facebook's policies (https://developers.facebook.com/policy/), the user needs to logout from Facebook itself as well.

getFacebookAccessToken :: MonadIO mo => GGHandler sub master mo (Maybe AccessToken)

Get Facebook's access token from the session. Returns Nothing if it's not found (probably because the user is not logged in via Facebook). Note that the returned access token may have expired.