If you want subdoamins to share the same facebook session for Facebook connect There are some addings need to be done (I had wasted around 3-4 hrs to find this out) so wanted to share if its useful to others.
First thing you need to do is configure Base domain in faceook application settings page under "Connect" tab.
1) This will make Facebook javascript library to stores the session cookie on base domain there by , allowing all subdomains to share the same cookie.
2) And also Facebook Server will allow the Connect URL to be available to all subdomains
Secondly set document.domain to your base domain in all javascript page on your domain and subdomains.Also set document.domain = base.domain in xd_receiver.htm before the Facebook javascript import.
Thanks Hope this helps you all to save time and add support for subdomains.
March 25, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment