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 get longer than session cookies for logged in users? #48

Closed confile closed 11 years ago

confile commented 11 years ago

I do not know how you handle that problem. Whenever I use our plugin I get cookies which have session live time. What do you do to get longer cookies from facebook?

benorama commented 11 years ago

I don't think you can (but most of our apps run on FB page tabs, so we got signed request directly if the user has already authorized the app).

This is linked to Facebook JS SDK. You might try FB.getLoginStatus() to check if the current user is authenticated on Facebook and has already authorized the app. http://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/