splix / grails-facebook-authentication-example

Grails 2.0 Spring Security Facebook Plugin Example
12 stars 14 forks source link

Grails 2.1.1 -> Latest spring-security-facebook -- Access token not set on FBUser #5

Open aliasdhacker opened 11 years ago

aliasdhacker commented 11 years ago

Original code: FacebookUser fbUser = new FacebookUser( uid: token.uid, accessToken: token.accessToken, user: person )

This code trys to set the accessToken to the string field (accessToken) and it does not work. In the latest version of FacebookAuthToken, to return the string value of the access token call:

token.accessToken.accessToken

This fixed the app for me.

Just my thoughts, have a great day, Andrew