title: Login into Facebook with PHP script, but let me logged in the browser after the end of this script
body: <p>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?</p>
  
  <p>If anyone has done loging into Facebook or Twitter with javascript, can you share some tips or the complete script with me, please?</p>
  
  <p>Thanks for any tips and explaining me the overall logic.</p>