title: grails facebook registration/login
body: <p>I have a Grails app that uses the Spring Security plugin for authorisation/authentication. I would like to also offer users the ability to register/login via Facebook. I need to integrate Facebook login/registration with the Spring Security plugin, such that (for example) if I call</p>
  
  <pre><code>springSecurityService.getCurrentUser()
  </code></pre>
  
  <p>it will return a user object for the current user regardless of whether that user logged-in with Facebook.</p>
  
  <p>I've found a <a href="http://grails.org/plugin/spring-security-facebook" rel="nofollow">variety</a> of <a href="https://github.com/pinut/grails-spring-security-facebook" rel="nofollow">plugins</a> and <a href="http://alexduan.com/2011/08/23/grails-spring-security-facebook-in-depth-guide/" rel="nofollow">blog-posts</a> that propose a solution, but I'm not sure which (if any) will work with the most recent version of Grails (2.0.0.RC1) and the Spring Security plugin.</p>
  
  <p>Can anyone recommend which of these plugins/procedures I should try or should I just work with the Facebook API directly? I read somewhere that using a plugin may be inadvisable, because the Facebook API changes frequently (and there will inevitable be a gap between the time Facebook make these changes and when a compatible version of the plugin is released).</p>