Facebook Connect does not set cookies

I am trying to implement Facebook Connect on a website with .NET MVC using C #.

I followed the following instructions: http://wiki.developers.facebook.com/index.php/Trying_Out_Facebook_Connect step by step. I can get the login to work like this is that when I login through the site, Iā€™m also logged into Facebook.

To work with this on the server, it seems to me I need to access the cookies that Facebook should leave as:

APIKEY_user


APIKEY_session_key


...

as mentioned here http://wiki.developers.facebook.com/index.php/Verifying_The_Signature .

The thing is, I am not getting any of these cookies. I googled and it seems that I am the only person with this problem. Any ideas as to what I might be doing wrong? Has this happened to someone else?

+2


source to share


3 answers


The problem was that I was developing locally using localhost.



I solved the problem by changing the settings for the application to point to a specific web address instead of localhost and change my hosts file. Same web address for 127.0.0.1

+4


source


from a UI / client perspective, always make sure you have the correct path specified for the xd_receiver file in your FB.init () method.



0


source


Firecookie is very useful for seeing which cookies are set / not set.

0


source







All Articles