Facebook Connect不设置Cookie [英] Facebook Connect not setting cookies

查看:276
本文介绍了Facebook Connect不设置Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在使用C#的.NET MVC的网站上实现Facebook Connect。

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

我按照此处的说明操作: http://wiki.developers.facebook.com/index.php/Trying_Out_Facebook_Connect 分步骤。我可以使登录工作,因为当我通过网站登录我也登录到Facebook。

I've followed the instructions here: http://wiki.developers.facebook.com/index.php/Trying_Out_Facebook_Connect step by step. I can make the login work as in that when I log in through the site I'm also logged into Facebook.

为了在服务器中使用它,我认为我需要访问Facebook应该离开的cookies:

In order to work with this in the server I think I need to access the cookies Facebook is supposed to leave like:

APIKEY_user

APIKEY_session_key

...

APIKEY_user
APIKEY_session_key
...

http://wiki.developers.facebook.com/index.php/Verifying_The_Signature


事情是我没有得到任何这些cookie。我已经google了,似乎我是唯一的人有这个问题。任何想法,我可以做错了什么?

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

The thing is I'm not getting any of these cookies. I've googled and it seems like I'm the only person with this problem. Any ideas as to what I could be doing wrong ? Has this happened to anyone else ?

推荐答案

问题是我在本地使用localhost进行开发。

The issue was that I was developing locally using localhost.

我通过将应用程序的设置更改为指向某个Web地址而不是localhost并将我的主机文件lo point更改为127.0来解决此问题。 0.1

I resolved the problem by changing the settings for the application to point to a certain web address instead of localhost and changing my hosts file lo point that same web address to 127.0.0.1

这篇关于Facebook Connect不设置Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆