agorapulse / grails-facebook-sdk

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

How do you manage to get long term cookies fbm und fbs? #47

Closed confile closed 11 years ago

benorama commented 11 years ago

Have you tried to use the exchangeToken() method from FacebookContextUser?

facebookContext.user.exchangeToken()

It will store the long term token in the session scope (and/or you can save it in DB). I don't think you can get a long term signed cookie from Facebook.

confile commented 11 years ago

I need cookies that live longer than the browser session. I.e. One year. How do you handle that? Do I have to request this from facebook during authentication?

benorama commented 11 years ago

I don't think that it is possible. For security reason, Facebook will probably not allow that.

Le 14 mars 2013 à 15:35, "Michael G." notifications@github.com a écrit :

I need cookies that live longer than the browser session. I.e. One year. How do you handle that? Do I have to request this from facebook during authentication?

— Reply to this email directly or view it on GitHub.