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  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 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  wrote:
>
>
>
> > 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 think you should declare
> > victory yet.
>
> > On Jul 20, 2:19 am, "eric.winch...@gmail.com"
>
> >  wrote:
> > > 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"
>
> > >  wrote:
> > > > 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 Wiki but tricking Cake to use
> > > > Facebook's session seems like the wrong thing to do.
>
> > > > Given this problem, I don't understand how this 
> > > > works:http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps...
>
> > > > On Jul 19, 4:02 pm, "eric.winch...@gmail.com"
>
> > > >  wrote:
> > > > > I'm attempting to use Facebook Connect with its PHP library.
>
> > > > > 
>
> > > > > 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 Cake taking over the
> > > > > sessions and cookies.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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  wrote:
> 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 think you should declare
> victory yet.
>
> On Jul 20, 2:19 am, "eric.winch...@gmail.com"
>
>  wrote:
> > 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"
>
> >  wrote:
> > > 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 Wiki but tricking Cake to use
> > > Facebook's session seems like the wrong thing to do.
>
> > > Given this problem, I don't understand how this 
> > > works:http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps...
>
> > > On Jul 19, 4:02 pm, "eric.winch...@gmail.com"
>
> > >  wrote:
> > > > I'm attempting to use Facebook Connect with its PHP library.
>
> > > > 
>
> > > > 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 Cake taking over the
> > > > sessions and cookies.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 think you should declare
victory yet.

On Jul 20, 2:19 am, "eric.winch...@gmail.com"
 wrote:
> 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"
>
>  wrote:
> > 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 Wiki but tricking Cake to use
> > Facebook's session seems like the wrong thing to do.
>
> > Given this problem, I don't understand how this 
> > works:http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps...
>
> > On Jul 19, 4:02 pm, "eric.winch...@gmail.com"
>
> >  wrote:
> > > I'm attempting to use Facebook Connect with its PHP library.
>
> > > 
>
> > > 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 Cake taking over the
> > > sessions and cookies.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Session/Cookie problem with Facebook JS + PHP

2009-07-19 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"
 wrote:
> 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 Wiki but tricking Cake to use
> Facebook's session seems like the wrong thing to do.
>
> Given this problem, I don't understand how this 
> works:http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps...
>
> On Jul 19, 4:02 pm, "eric.winch...@gmail.com"
>
>  wrote:
> > I'm attempting to use Facebook Connect with its PHP library.
>
> > 
>
> > 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 Cake taking over the
> > sessions and cookies.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 Wiki but tricking Cake to use
Facebook's session seems like the wrong thing to do.

Given this problem, I don't understand how this works:
http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps-auth-component/

On Jul 19, 4:02 pm, "eric.winch...@gmail.com"
 wrote:
> I'm attempting to use Facebook Connect with its PHP library.
>
> 
>
> 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 Cake taking over the
> sessions and cookies.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---