splix/grails-spring-security-facebook — Issue #4: Problems accessing fbuser within controller
Author: joergrech
Created: 2012-01-21 22:20:40+00:00
State: open

Hi,
I'm trying to use this plugin and do not know how to access information about the facebook user from a controller. I tried to use the code as stated in the Plugin page (http://grails.org/plugin/spring-security-facebook):

Facebook facebook = new FacebookTemplate(token.accessToken)
FacebookProfile fbProfile = facebook.userOperations().userProfile
String email = fbProfile.getEmail()

However, the system cannot find the class "FacebookTemplate". No class with this name is located in the package com.the6hours.grails.springsecurity.facebook and no other package does exist.

Is there code missing?

I'm using version 0.5.4 of the plugin with Grails 1.3.7 via STS.