On Fri, Jan 6, 2012 at 12:11 PM, Gustaf Nilsson <[email protected]> wrote:
> Hi
> Anyone has experience connecting a facebook account with a pyjamas app?

 oo.  ah.  yes.... i did it - it works.  however you have to open a
new window, you can't do it as an iframe: they have iframe-detecting
code (grr).

 i did a loop (on a timer) which polls the database with a JSONRPC
function call, and the facebook login page returns to a django
template target which does nothing more than put a session key into
the database and then closes the page.

 the main pyjamas app which has been sitting there doing the polling
goes "ah ha! i have a session key now as the return result of my
JSONRPC function call!" and can then go "yippee, login succeeded".

 it's quite straightforward, and doesn't involve doing a total
refresh.  which i think i did in the first version, because i couldn't
work out the above trick correctly, whoops :)

 l.

Reply via email to