Talk:Using Facebook Connect with Server-Side Libraries
From Facebook Developer Wiki
"The PHP 5 client automatically saves the session in a set of cookies local to your site, which the Facebook JavaScript library will parse"
This seems to suggest that you can create a session with PHP, and the JS library can then use these cookies to get a session. Can anyone verify that? In my experience, the JS client ignores (and in fact, destroys) any cookies set by the PHP library. 776158039 18:04, 10 March 2009 (PDT)
- I spoke with the engineers about this and the cookies should be shared between PHP and JavaScript. If in fact you're losing your cookies, it could be a bug. In that case, could you please file a bug and provide any repro steps. Thanks. Pete (563683308 18:01, 11 March 2009 (PDT))
[edit] How do I pass the session from the lightbox login method into the server side for an asp.net client library?
How do I pass the session from the lightbox login method into the server side for an asp.net client library?
I have seen how to use the asp.net libraries with the authtoken method, but not the session being passed from javascript method. Does anyone know how to do this? What asp.net client library should I use? Do you have example code to retrieve the correct cookies and pass the session?
[edit] Sharing cookies between PHP and JS
JS API sets the cookies in the root folder "/" of the domian.
PHP API sets the cookies in the current folder of the request "/current/request/folder/"
Having 2 sets of cookies could cause endless problems and bugs.
Make sure your all the pages in your website are in the root folder, or hack the PHP API to set the cookies in the root folder.
I'm not sure, though, if xd_receiver's location is related to the cookie path (I found that it doesn't).
587721567 08:44, 17 November 2009 (PST)
