Last updated by burtbeckwith 8 years ago
Using Facebook Connect in your Grails application only requires a few steps. Of course you should already have an API key from Facebook.

Add these properties to SecurityConfig.groovy:

useFacebook = true
facebook.apiKey = 'YOUR API KEY'
facebook.secretKey = 'YOUR SECRET KEY'

Users accessing URLs secured with one or more roles will be redirected to the Facebook login page (facebookAuth.gsp) where they enter their Facebook login name. The form submits to the Facebook server for authentication so your users don't need to worry about trusting your application with their Facebook password.