使用PHP脚本登录Facebook,但让我在脚本结束后登录浏览器 [英] Login into Facebook with PHP script, but let me logged in the browser after the end of this script

查看:122
本文介绍了使用PHP脚本登录Facebook,但让我在脚本结束后登录浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请,我解决这个问题..我需要从我的PHP脚本运行在我的服务器上登录Facebook或Twitter或任何其他网站。我正常使用CURL,将cookie保存到一些预定义的文件。
但现在我需要新的东西..我需要保持登录与我的浏览器,即使脚本结束登录过程。
这是简单的事情,我看不到..或者我要进入复杂的领域?有人告诉我,我需要使用javascript来设置所有的cookies和发送登录数据窗体吗?

Please, I am solving this problem.. I need to login into Facebook or Twitter or any other website from my PHP script running on my server. I am normaly doing that with CURL, saving cookies to some predefined file. But now I need something new.. I need to stay logged in with my browser, even when the script ends the login process. Is that something simple, I can't see.. or am I going into complicated territory? Something tells me, I would need to use javascript to set all cookies and sending the login data form?

如果有人已经登录Facebook或Twitter,

If anyone has done loging into Facebook or Twitter with javascript, can you share some tips or the complete script with me, please?

感谢您提供任何提示和解释我的整体逻辑。

Thanks for any tips and explaining me the overall logic.

推荐答案

我会调查 Facebook Connect ,更多信息此处此处

I would look into Facebook Connect, More info here and here.

这篇关于使用PHP脚本登录Facebook,但让我在脚本结束后登录浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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