Re: Session/Cookie problem with Facebook JS + PHP

2009-07-27 Thread Eric
Just as a followup, I have had no side effects using localhost.com ... and it definitely did not work using localhost On Jul 21, 7:10 am, rchavik rcha...@gmail.com wrote: I agree. A better way would be to stage your application with myapp.com (or whatever name you want), and set that in your

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-21 Thread Smelly Eddie
Something is wrong removing localhost from your hosts file may have a negative impact on any applications that expect localhost, a de facto standard, to be the local loopback address. Besides that it should not affect cookies from another domain. Although the two may be related, I don't

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-21 Thread rchavik
I agree. A better way would be to stage your application with myapp.com (or whatever name you want), and set that in your hosts file. You'll need to adjust your Facebook App setting and your apache configuration to reflect this change. On Jul 21, 6:56 pm, Smelly Eddie ollit...@gmail.com wrote:

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-20 Thread eric.winch...@gmail.com
The bad news is I am an idiot. The good news is the solution is to not use LOCALHOST. I changed C: \Windows\System32\drivers\etc\hosts 'localhost' to 'localhost.com' and Facebook cookies work the way they should. On Jul 19, 11:12 pm, eric.winch...@gmail.com eric.winch...@gmail.com wrote: More

Session/Cookie problem with Facebook JS + PHP

2009-07-19 Thread eric.winch...@gmail.com
I'm attempting to use Facebook Connect with its PHP library. fb:login-button onlogin=update_login_box()/fb:login-button That gets the user logged in ok but then using the PHP libs: $facebook-get_loggedin_user() is always NULL. Anyone run into this? I'm wondering if it has something to do with

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-19 Thread eric.winch...@gmail.com
More information: I checked to be sure Facebook is instantiating correctly. I think CakePHP is preventing the Facebook class from getting the cookie data. Facebook::get_valid_fb_params() tries to access $_COOKIE but the only thing in there is $_COOKIE['CAKEPHP'] There is a weird fix on the FB