Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about storing the signed request in a cookie #60

Closed
mbaechtold opened this issue Mar 13, 2012 · 2 comments
Closed

Question about storing the signed request in a cookie #60

mbaechtold opened this issue Mar 13, 2012 · 2 comments

Comments

@mbaechtold
Copy link

I'm running a Facebook page tab with Fandjango.
Imagine the user is already a fan of the page in questions, so the signed request says the user likes the page:

{
  "algorithm":"HMAC-SHA256",
  "issued_at":1309468031,
  "page": {
     "id":"xyz",
     "liked":true,
     "admin":false
  },
  "user": {
    "country":"de",
    "locale":"en_US",
    "age":{
      "min":21
    }
 }

Now the user decides to not be a fan of the page anymore. The next time he visits the page tab, the signed request is loaded from the cookie, still indicating the user likes the page.

Is this the correct? If it is, then this would not reflect the actual fan state of the user...

@jgorset
Copy link
Owner

jgorset commented Mar 13, 2012

No; the cookie cached is updated upon receiving a new signed request from Facebook. :-)

@mbaechtold
Copy link
Author

Thx @jgorset. I just had a look at the middleware and it's so obvious :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants