agorapulse / grails-facebook-sdk

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

How can I request the "fbm_..." and "fbsr_" cookies manually? #40

Closed confile closed 11 years ago

confile commented 11 years ago

When I use

<facebook:loginLink appPermissions="${facebookContext.app.permissions}">Login</facebook:loginLink>

I got two cookies: fbm.... and fbsr.... How can I request them when I request them?

For facebook authentication I use:

            def url = facebookContext.getLoginURL(
                redirect_uri:createLink(controller:"fb",action:"suc",absolute: true),
                scope: grailsApplication.config.grails.plugin.facebooksdk.appPermissions)

            redirect uri: url

What do I have to change to get the longer cookies and also a 1 year facebook token?

benorama commented 11 years ago

No you can't. Those cookies are generated/handled by Facebook.