arsduo/koala — Issue #142: Losing session in Canvas app w/ Koala & Chrome
Author: moeffju
Created: 2011-11-04 14:42:13+00:00
State: open

Hi, I've been scratching my head for a full day now trying to get a Facebook Canvas app working with rails 3.1.1 and Koala using Google Chrome.

Here's the auth logic: https://gist.github.com/b27550ce85afc6417e05

Unfortunately on each request, the session gets cleared (CSRF protection is disabled) and thus the user_id is not persisted, resulting in redirects to the app authorize page on all subsequent clicks.

This is my first go at a Fb Canvas app in a long time and everything has changed, so I'm sure it's something very stupid I'm doing, but I cannot find the bug.