Facebook连接:获取错误 - 无法设置cookie。标头已发送 [英] Facebook connect : Getting an error - Could not set cookie. Headers already sent

查看:223
本文介绍了Facebook连接:获取错误 - 无法设置cookie。标头已发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用php sdk将facebook连接集成到我的网站上。

I'm trying to integrate facebook connect on to my website using php sdk.

我已成功地使用connect获取用户数据和内容。
然而,我的会话数据是在URL中的,因为cookie没有设置。

I have successfully been able to get user data and stuff using connect. However, my session data is coming up in the URL cos the cookie is not been set.

有人可以让我知道为什么这可能

Can someone please let me know as to why this could be happening.

感谢,
Alloi

Thanks, Alloi

推荐答案

想想也许我知道什么可能造成这种错误。也许alloi不记得将应用程序ID号和应用程序密码放入外部站点代码。

I think perhaps I know what may have caused that error. Perhaps alloi did not remember to put the Application ID number and the Application Secret into the external site code.

这篇关于Facebook连接:获取错误 - 无法设置cookie。标头已发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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