agorapulse / grails-facebook-sdk

Facebook SDK Grails Plugin
http://agorapulse.github.com/grails-facebook-sdk/guide
30 stars 13 forks source link

Server side authentication #58

Closed confile closed 10 years ago

confile commented 11 years ago

Can you provide a short outline in your documentation on how to do server side authentication?

benorama commented 11 years ago

Hi Michael,

The recommended authentication is to use Facebook JS SDK (and facebook:loginLink), because it will keep user authentication context.

Why do you want to use server side redirect? What problem do you have?

As in Facebook SDK Demo sample app, you should just have to use @facebookContext.loginURL@ in a link to perform the server side redirect for authentication.

confile commented 11 years ago

I want to use persistent logins. This means that I want to store the login on the server. So I will be able to logout the user whenever I want.